NI-Digital Pattern Driver C Function Reference

niDigital_CreateCaptureWaveformSerial

  • Updated2023-11-24
  • 1 minute(s) read

niDigital_CreateCaptureWaveformSerial

Capture Memory Group

Sets the capture waveform settings for serial acquisition. Settings apply across all sites if multiple sites are configured in the pin map. You cannot reconfigure settings after waveforms are created.

C Function Prototype: ViStatus niDigital_CreateCaptureWaveformSerial (ViSession vi, ViConstString pinList, ViConstString waveformName, ViUInt32 sampleWidth, ViInt32 bitOrder)

Parameter Description
vi The specified instrument session the niDigital_init or niDigital_InitWithOptions function returns.
pinList List of capture pins from the waveform. The pinList must match the capture pins in the pattern that references the waveform. The pin order in the pinList determines the bit positions of the data captured by the niDigital_FetchCaptureWaveform function.
waveformName Waveform name you want to use. Use the waveformName with the capture_start opcode in your pattern.
sampleWidth Width in bits of each serial sample. Valid values are between 1 and 32.
bitOrder Order in which to shift the bits.
  • NIDIGITAL_VAL_MSB_FIRST (2500): Specifies the bit order by most significant bit first.
  • NIDIGITAL_VAL_LSB_FIRST (2501): Specifies the bit order by least significant bit first.

Return value: Reports the status of the operation.

Log in to get a better experience