NI-Digital Pattern Driver .NET Class Library

Table of Contents

DigitalCaptureWaveforms.CreateSerial Method (DigitalPinSet, String, UInt32, BitOrder)

  • Updated2023-11-24
  • 2 minute(s) read
DigitalCaptureWaveforms.CreateSerial Method (DigitalPinSet, String, UInt32, BitOrder)

DigitalCaptureWaveformsCreateSerial Method (DigitalPinSet, String, UInt32, BitOrder)

Creates the capture waveform settings for serial acquisition using DigitalPinSet.

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

Syntax

public void CreateSerial(
	DigitalPinSet pinSet,
	string waveformName,
	uint sampleWidth,
	BitOrder bitOrder
)
Public Sub CreateSerial ( 
	pinSet As DigitalPinSet,
	waveformName As String,
	sampleWidth As UInteger,
	bitOrder As BitOrder
)

Parameters

pinSet
Type: NationalInstruments.ModularInstruments.NIDigitalDigitalPinSet
The set of pins or channels for which to create the waveform.
waveformName
Type: SystemString
Specifies the waveform name to use. Use the waveformName with the capture_start opcode in your pattern.
sampleWidth
Type: SystemUInt32
The width in bits of each serial sample. Valid values are between 1 and 32.
bitOrder
Type: NationalInstruments.ModularInstruments.NIDigitalBitOrder
The order in which to shift the bits. This can be most significant bit first or least significant bit first.

Exceptions

ExceptionCondition
IviCDriverExceptionThe NI-Digital Pattern Driver returned an error.
SelectorNameExceptionThe pinSet contains a pin or pin group name not loaded in the pin map.
InvalidOperationExceptionThe pinSet contains a system pin.
ArgumentException
  1. The value for waveformName is an empty string or contains an invalid character.
  2. The value for sampleWidth is invalid.
  3. The value for bitOrder is invalid.
OutOfRangeExceptionThe number of waveforms in capture memory exceeds the maximum number of waveforms allowed.

Remarks

Settings apply across all sites if multiple sites are configured. You cannot reconfigure settings after waveforms are created.

The number of waveforms is limited to 512.

See Also

Log in to get a better experience