Analog output, Al_setdaoutput – Measurement Computing ADLIB WIN User Manual
Page 63

Chapter 18 Analog Output
17-1
17. ANALOG OUTPUT
The Analog Output function immediately sets the specified DtoA channel to specified voltage. This is
typically used for slower software transfer modes requiring level oriented voltage output application
requirements. For higher speed applications the DMA transfer mode allows timed waveform generation.
To use the AL_SetDAOutput function with the Pci55xx DAC0 or DAC1 the clocking source must also be
configured for “SOFTWARE_CONVERT”, in addition DAC0’s Trigger and Gating modes must be
DISABLED.
17.1 AL_SetDaOutput
Prototype
C\C++
ERRNUM
AL_SetDaOutput(LHLD
lhld, double dData, long lUnits);
Visual for Basic Windows
Function AL_SetDaOutput(ByVal lhld As Long, ByVal dData As Double,
ByVal lUnits As Long) As Long
LHLD lhld
handle of the LDSD
double dData output
data
long lUnits
specifies the output data units
The AL_SetDaOutput function immediately sets a hardware analog output port to the dData value.
Parameter Description
lhld
Identifies the instance of the logical device subsystem.
dData
Specifies the data output value.
lUnits
Sets the units in which the above dData output parameter is specified. The
available settings are defined as AL_VOLTS or AL_RAWDATA in the ADLIB
include
file.
Returns:
On success ERRNUM is set to 1, otherwise ERRNUM contains the last error code that occurred during the
call.
Related Functions:
NONE
Program References:
Adlda01
Supported Logical Device Subsystems:
Pci55xx Series: DAC0, DAC1