NI-Digital Pattern Driver .NET Class Library

Table of Contents

DigitalSourceWaveforms.CreateParallel Method (String, String, SourceDataMapping)

  • Updated2023-11-24
  • 2 minute(s) read
DigitalSourceWaveforms.CreateParallel Method (String, String, SourceDataMapping)

DigitalSourceWaveformsCreateParallel Method (String, String, SourceDataMapping)

Creates source waveform settings used to source parallel data using a comma-delimited string of pins or channels.

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

Syntax

public void CreateParallel(
	string pinSetString,
	string waveformName,
	SourceDataMapping dataMapping
)
Public Sub CreateParallel ( 
	pinSetString As String,
	waveformName As String,
	dataMapping As SourceDataMapping
)

Parameters

pinSetString
Type: SystemString
The set of pins or channels for which to create the waveform. The pins or channels represented by the pinSetString must match the source pins in the pattern that references the waveform. The pin order in the pin set string determines the bit positions of the data written using one of the write waveform methods on the DigitalSourceWaveforms object.
waveformName
Type: SystemString
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.
dataMapping
Type: NationalInstruments.ModularInstruments.NIDigitalSourceDataMapping
Specifies whether the waveform is broadcast to all sites or a unique waveform is sourced per site.

Exceptions

ExceptionCondition
IviCDriverExceptionThe NI-Digital Pattern Driver returned an error.
SelectorNameExceptionThe value for pinSetString contains a pin or pin group name not loaded in the pin map.
ArgumentExceptionThe value for waveformName is an empty string or contains an invalid character.
OutOfRangeExceptionThe value for dataMapping is invalid.The number of waveforms in source memory exceeds maximum number of waveforms allowed.

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.

See Also

Log in to get a better experience