beautypg.com

Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 224

background image

Function Usage

The term waveform/pattern output is used extensively throughout the entries for the
functions of the form daqDac…. This refers to an analog waveform output modes and/or
digital pattern output modes. These terms describe output to DAC and/or digital output
channels that are synchronously updated by a clock source defined by the application.

Any arbitrary waveform can be built in an array. daqDacWaveSetUserWave can then be called by
specifying pointers to the beginning of the waveform, the size of the array, and the target DAC channel to
send the waveform.

The data value should be 16-bit WORD which will be converted to the corresponding voltage by the D/A
converter. Reference the device user’s manual in regard to D/A range and resolution.

For example; the voltage for a DaqBoard/2000 Series board has a resolution of approximately 0.305 mV
(20 V / 65,535).

Prototypes

C/C++

daqDacWaveSetUserWave(DaqHandleT handle, DaqDacDeviceType deviceType,
DWORD chan);

Visual BASIC

VBdaqDacWaveSetUserWave&(ByVal handle&, ByVal deviceType&, ByVal chan&)

Program References

DAQDACEX03.CPP

4.4-42 Daq API Command Reference

908494

Programmer’s

Manual