Creates source waveform settings used to source parallel data using a specified DigitalPinSet.

Syntax

Namespace: NationalInstruments.ModularInstruments.NIDigital

public void CreateParallel(DigitalPinSet pinSet, string waveformName, SourceDataMapping dataMapping)

Remarks

The number of waveforms is limited to 512.

You cannot reconfigure settings after waveforms are created.

For more information, refer to Opcodes and Source Waveform Configurations in the Digital Pattern Help.

Parameters

NameTypeDescription
pinSetDigitalPinSet

The set of pins or channels for which to create the waveform. The pinSet  must match the source pins in the pattern that references the waveform. The pin order in the pin set determines the bit positions of the data written using one of the write waveform methods on the DigitalSourceWaveforms object.

waveformNamestring

The name of the waveform to use in the pattern file. Waveform names must be unique. Use this waveformName  with the source_start opcode in your pattern.

dataMappingSourceDataMapping

Specifies whether the waveform is broadcast to all sites or a unique waveform is sourced per site.

Exceptions

TypeDescription
Ivi.Driver.IviCDriverException

The NI-Digital Pattern Driver returned an error.

Ivi.Driver.SelectorNameException

The pinSet  contains a pin or pin group name not loaded in the pin map.

System.ArgumentException

  1. The value for waveformName  is an empty string or contains an invalid character.

  2. The value for dataMapping  is invalid.

  3. The number of waveforms in source memory exceeds maximum number of waveforms allowed.