Download downloading

Transcript
DRV_AIVoltageInExp
status = DRV_AIVoltageInExp(DriverHandle, lpAIVoltageInExp)
Purpose
Reads an analog input channel with expansion board and returns the
result scaled to a voltage (units = volts). This function supports the
expansion boards: PCLD-770/779/789/789D/788.
Parameters
Name
DriverHandle
Direction
Input
lpAIVoltageInExp
Input/Output
Type
long
long pointer to
PT_AIVoltageInExp
Range
default
default
Description
assigned by
DRV_DeviceOpen
the storage address
for DasChan,
DasGain, ExpChan
and voltage
Table 5-26: DRV_AIVoltageInExp Parameter Table
Return
• SUCCESS if successful
•
InvalidDriverHandle if DriverHandle = NULL
•
AIVoltageIn return code
•
AIConfig return code
Note
1. Configuring the PCL-779, PCLD-770, and PCLD-789/889
Amplifier/Multiplexer Boards.
The PCLD-789 Amplifier/Multiplexer allows up to 16 differential
analog input channels to be multiplexed into one analog input (A/D)
channel of a DAS card. The PCLD-779 and PCLD-770 allow for total
isolation of up to eight multiplexed channels. When used with multiplexer boards, the first four D/O channels of the DAS card are used for
scanning/selecting analog input channels of the PCLD-770, PCLD-779
or PCLD-789 one channel at a time. Because of the digital output
allocation when using these expansion boards, the first byte of D/O
channels (0-7) on the DAS card are no longer available for standard
digital output. Each PCLD-770/779/789/889 must occupy its own A/D
channel.
166
Advantech DLL Drivers User's Manual