NI-Digital Pattern Driver C Function Reference

niDigital_WriteSourceWaveformSiteUniqueU32

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

niDigital_WriteSourceWaveformSiteUniqueU32

Source Memory Group

Writes one waveform per site. Use this write function if you set the parameter of the create source waveform function to Site Unique.

C Function Prototype: ViStatus niDigital_WriteSourceWaveformSiteUniqueU32 (ViSession vi, ViConstString siteList, ViConstString waveformName, ViInt32 numWaveforms, ViInt32 samplesPerWaveform, ViUInt32[] waveformData)

Parameter Description
vi The specified instrument session the niDigital_init or niDigital_InitWithOptions function returns.
siteList Site numbers listed as a comma-delimited list of strings of form siteN, where N is the site number.
waveformName The name to assign to the waveform. Use the waveformName with source_start opcode in your pattern.
numWaveforms Number of waveforms.
samplesPerWaveform Number of samples per waveform.
waveformData An array of samples to use as source data. Data for each site must be appended sequentially in the array (non-interleaved).

Return value: Reports the status of the operation.