Writes one source waveform to each of the specified sites.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIDigital

public void WriteSiteUnique(string siteList, string waveformName, uint[][] waveformData)

Remarks

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

Parameters

NameTypeDescription
siteListstring

The comma-delimited list of sites on which to burst the pattern (for example, "<tt>site0, site1</tt>"). Sites that are not on this list are disabled. All sites are enabled for pattern bursting if you pass an empty string.

waveformNamestring

Name of the source waveform. Use the waveformName  with the source_start opcode in your pattern.

waveformDatauint

A 2D jagged array of waveform samples to use as source data. Each row corresponds to each site in the specified siteList .

Exceptions

TypeDescription
Ivi.Driver.IviCDriverException

The NI-Digital Pattern Driver returned an error.

Ivi.Driver.SelectorNameException

The value for siteList  contains an invalid site.

System.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 null or not initialized.

  4. The number of data values in each waveform in waveformData  is not equal or is zero.