NI-Digital Pattern Driver .NET Class Library

Table of Contents

DigitalSourceWaveforms.WriteSiteUnique Method

  • Updated2023-11-24
  • 1 minute(s) read
DigitalSourceWaveforms.WriteSiteUnique Method

DigitalSourceWaveformsWriteSiteUnique Method

Writes one source waveform to each of the specified sites.

Namespace:  NationalInstruments.ModularInstruments.NIDigital
Assembly:  NationalInstruments.ModularInstruments.NIDigital.Fx40 (in NationalInstruments.ModularInstruments.NIDigital.Fx40.dll) Version: 2021

Syntax

public void WriteSiteUnique(
	string siteList,
	string waveformName,
	uint[][] waveformData
)
Public Sub WriteSiteUnique ( 
	siteList As String,
	waveformName As String,
	waveformData As UInteger()()
)

Parameters

siteList
Type: SystemString
The comma-delimited list of sites on which to burst the pattern (for example, "site0, site1"). Sites that are not on this list are disabled. All sites are enabled for pattern bursting if you pass an empty string.
waveformName
Type: SystemString
Name of the source waveform. Use the waveformName with the source_start opcode in your pattern.
waveformData
Type: SystemUInt32
A 2D jagged array of waveform samples to use as source data. Each row corresponds to each site in the specified siteList.

Exceptions

ExceptionCondition
IviCDriverExceptionThe NI-Digital Pattern Driver returned an error.
SelectorNameExceptionThe value for siteList contains an invalid site.
ArgumentException
  1. The waveform name specified by waveformName does not exist.
  2. The first dimension of waveformData does not match the number of sites in siteList.
  3. One or more waveform arrays in waveformData is or not initialized.
  4. The number of data values in each waveform in waveformData is not equal or is zero.

Remarks

Use this method if you created the source waveform to use SiteUnique data mapping.

See Also

Log in to get a better experience