User`s guide
Software Library •• 23
5.2.4 _6208_DA
@ Description
This function is used to write data to D/A converters. There are 8 and 16
Digital-to-Analog conversion channels on the cPCI/PCI-6208.and PCI-6216
respectively. The resolution of each channel is 16 bits with sign; i.e. the
digital value range from -32768 (0x8000) to +32767 (0x7FFF). The
following table shows the output data format and the relation between the
digital value and the analog output voltage:
Digital value HEX value Output Voltage
32767 0x7FFF +9.99969V
16384 0x4000 +5.00000V
8192 0x2000 +2.50000V
1 0x0001 0.00031V
0 0x0000 0.00000V
-1 0xFFFF -0.00031V
-8192 0xE000 -2.50000V
-16384 0xC000 -5.00000V
-32767 0x8001 -9.99969V
-32768 0x8000 -10.00000V
@ Syntax
C/C++ (DOS)
U16 _6208_DA (U16 cardNo, U16 chn, I16 DAData)
C/C++ (Windows 95/98)
U16 W_6208_DA (U16 cardNo, U16 chn, I16 DAData)
Visual Basic (Windows 95/98)
W_6208_DA (ByVal cardNo As Integer, ByVal chn As Integer, ByVal
DAData As Integer) As Integer
@ Argument
cardNo: The card number of 6208 series card initialized. The first card (in
the most prior PCI slot) is with cardNo = 0.
Chn: D/A channel number
DAData: D/A converted value