Daqdacwavesetpredefwave – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 218

daqDacWaveSetPredefWave
Also See: daqDacWaveSetUserWave
Format
daqDacWaveSetPredefWave(handle, deviceType, chan, waveType, amplitude,
offset, dutyCycle, phaseShift)
Purpose
daqDacWaveSetPredefWave
specifies a pre-defined waveform for DAC waveform output on the
specified device channel.
daqDacWaveSetMode is used to set the update rate and cycling mode for this waveform.
Parameter Summary
Parameter Type
Description
handle DaqHandleT
Handle to the device to setup a pre-defined waveform output
deviceType DaqDacDeviceType Specifies the DAC type
chan DWORD
Specifies the DAC channel
waveType DaqDacWaveType Specifies the predefined waveform output type
amplitude DWORD
Sets the peak-to-peak amplitude for which to generate the pre-
defined waveform
offset DWORD
Sets the offset for the pre-defined waveform
dutyCycle DWORD
Sets the duty cycle as a percentage of the predefined waveform
phaseShift DWORD
Set the phase shift (in degrees) of the predefined waveform
relative to other DAC 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
waveType:
see table below
amplitude:
valid values range from 0 to 65,535 (in D/A counts)
offset:
valid values range from 0 to 65,535 (representing the voltage level in D/A counts)
dutyCycle:
duty cycle is a percentage of the predefined waveform and can range from 1 to 100
phaseShift:
phase shift is degrees to shift the predefined waveform from 0 to 360
4.4-36 Daq API Command Reference
908494
Programmer’s
Manual