Daqdacwavesetfreq, Format, Purpose – Measurement Computing Data Acquisition Systems rev.10.4 User Manual
Page 214: Parameter summary, Parameter values, Returns

daqDacWaveSetFreq
Also See: daqDacWaveGetFreq, daqDacWaveSetClockSource
Format
daqDacWaveSetFreq(handle, deviceType, chan, freq)
Purpose
daqDacWaveSetFreq
sets the waveform/pattern output update frequency (in Hz) for the specified device.
Parameter Summary
Parameter Type
Description
handle DaqHandleT Handle to the device for which the waveform output update
frequency will be set
deviceType DaqDacDeviceType
Specifies the DAC type
chan DWORD
Specifies the DAC channel
freq FLOAT
Sets the DAC waveform output frequency to the specified
frequency
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
freq:
single precision floating point value (4 bytes) that contains the update frequency from
0.0 to 500000.0 Hz
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.
Returns
DerrNoError
No error
4.4-32 Daq API Command Reference
908494
Programmer’s
Manual