AI_VReadChannel | ![]() ![]() ![]() ![]() |
AI_VReadChannel
@ Description
This function performs a software triggered A/D conversion (analog input) on an analog input channel and returns the value scaled to a voltage in units of volts.
@ Cards Support
9111, 9112, 9113, 9114, 9118, 9812/10
@ Syntax
I16 AI_VReadChannel (U16 CardNumber,
U16 Channel, U16 AdRange, F64 *voltage)
@ Parameter
CardNumber :The
card id of the card that want to perform this operation.
Channel : Analog
input channel number.
Range: 0 through 15 for PCI-9112/cPCI-9112, PCI-9111, PCI-9118
Range: 0 through 31 for PCI-9113, PCI-9114
Range: 0 for PCI-9812/10 and cPCI-9812/10
AdRange : The
analog input range the specified channel is setting. Please refer to the
Appendix B for the valid range values.
voltage
: The measured voltage value returned and scaled to units of voltage.
@ Return Code
NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport, ErrorInvalidIoChannel, ErrorInvalidAdRange