Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

CreateSerial Method (DigitalPinSet, String, UInt32, BitOrder)

Digital Pattern Help

Edition Date: May 2017

Part Number: 375145c

»View Product Info
Download Help (Windows Only)

DigitalCaptureWaveforms Class See Also


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: 17.0.0.49152 (17.0.0.49152)

Syntax

Visual Basic (Declaration)
Public Sub CreateSerial ( _
	pinSet As DigitalPinSet, _
	waveformName As String, _
	sampleWidth As UInteger, _
	bitOrder As BitOrder _
)

C#
public void CreateSerial(
	DigitalPinSet pinSet,
	string waveformName,
	uint sampleWidth,
	BitOrder bitOrder
)

Parameters

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

Exceptions

ExceptionCondition
Ivi.Driver.IviCDriverException
Ivi.Driver.OutOfRangeException
Ivi.Driver.SelectorNameException
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.
InvalidOperationExceptionThe pinSet contains a system pin.

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

Reference

DigitalCaptureWaveforms Class

NationalInstruments.ModularInstruments.NIDigital Namespace


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit