Daqdacwavesetuserwave – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 223

daqDacWaveSetUserWave
Also See: daqDacWaveSetPredefWave
Format
daqDacWaveSetUserWave(handle, deviceType, chan)
Purpose
daqDacWaveSetUserWave
configures a user-defined buffer for DAC waveform output.
Parameter Summary
Parameter Type
Description
handle DaqHandleT
Handle to the device to which the user-defined waveform
will be output
deviceType DaqDacDeviceType
Specifies the DAC device type
chan DWORD Specifies the DAC device channel
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
Parameter Type Definitions
deviceType–(DaqDacDeviceType)
Definition
chan
Value
Description
0
Configure a user defined waveform for waveform/pattern output operation,
where DAC0 is one of the channels being output.
1
Configure a user defined waveform for waveform/pattern output operation,
where DAC1 is one of the channels being output.
2
Configure a user defined waveform for waveform/pattern output operation,
where DAC2 is one of the channels being output.
DddtLocal
3
Configure a user defined waveform for waveform/pattern output operation,
where DAC3 is one of the channels being output.
DddtLocalDigital
NA
The 16-bit P3 Digital port is not applicable.
Returns
DerrInvDacChan
The DAC channel number doesn’t exist
DerrInvBuf
A waveform buffer was not specified
DerrMemAlloc
Not enough memory was available to build the waveform
DerrNotCapable
Hardware is not capable of this function
DerrNoError
No error
For more details on error messages refer to the Daq Error Table.
Programmer’s Manual
908494
Daq API Command Reference 4.4-41