AI_VoltScale Previous topicNext topicFirst topicLast topic

AI_VoltScale

@ Description

This function converts the result from an AI_ReadChannel call to the actual input voltage.

@ Cards Support

9111, 9112, 9113, 9114, 9118, 9812/10

@ Syntax

I16 AI_VoltScale (U16 CardNumber, U16 AdRange, I16 reading, F64 *voltage)

@ Parameter

CardNumber :The card id of the card that want to perform this operation.
AdRange : The analog input range the specified channel is setting. Please refer to the Appendix B for the valid range values.
reading   : The result of the AD Conversion.
voltage   : Computed voltage value.

@ Return Code

NoError, ErrorInvalidCardNumber, ErrorCardNotRegistered, ErrorFuncNotSupport, ErrorInvalidAdRange