Daqdacwavesetmode, Format, Purpose – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 216: Parameter summary, Parameter values, Mode–(daqdacwaveformmode), Returns

daqDacWaveSetMode
Also See: daqDacWaveSetTrig, daqDacWaveSetFreq
Format
daqDacWaveSetMode(handle, deviceType, chan, mode, updateCount)
Purpose
daqDacWaveSetMode
sets the waveform/pattern update mode for the output operation.
Parameter Summary
Parameter Type
Description
handle DaqHandleT
Handle to the device for which the DAC waveform
output mode will be set
deviceType DaqDacDeviceType
Specifies the DAC type
chan DWORD
Specifies the DAC channel
mode DaqDacWaveformMode
Specifies the desired DAC waveform output mode
updateCount DWORD
Sets the total sample update count
Parameter Values
handle:
obtained from the daqOpen function
deviceType:
see table below
chan:
valid values depend on the values chosen for the deviceType parameter; see the deviceType
table below
mode:
see table below
updateCount:
the total number update samples per channel to output can range from 1 to 4,294,967,295;
however, memory limitations may apply
Parameter Type Definitions
DeviceType–(DaqDacDeviceType)
Definition
chan
Value
Description
0
Start the transfer of waveform/pattern output data where DAC0 is one of the
channels being output.
1
Start the transfer of waveform/pattern output data where DAC1 is one of the
channels being output.
2
Start the transfer of waveform/pattern output data where DAC2 is one of the
channels being output.
DddtLocal
3
Start the transfer of waveform/pattern output data where DAC3 is one of the
channels being output.
DddtLocalDigital
0
Start the transfer waveform/pattern output data where the 16-bit P3 Digital port is
one of the channels being output.
mode–(DaqDacWaveformMode)
Definition Description
DdwmNShot
Write the specified number of DAC points, then disarm
DdwmNFileIterations
Write the specified number of file iterations, then stop (file mode only)?
DdwmInfinite
Cycle through the buffer until the daqDacWaveDisarm function is executed
Returns
DerrNoError
No error
4.4-34 Daq API Command Reference
908494
Programmer’s
Manual