IR10HJRead
I = Input
R = Reading functions
The IR10HJRead function reads the voltage on the hot junction by a card that supports type “thermocouple” inputs.
IMPLEMENTATION
IR10HJRead (HOT, gbCardType, glMicroVolts, gbError)
Parameters:
IN/OUT | VARIABLE TYPEE | EXAMPLE NAME | DIM | |
---|---|---|---|---|
IN | INTDEVICE ANINP | HOT | - | Mnemonic name of ANINP device used for HOTJ input |
IN | GLOBAL | gbCardType | B | Variable that indicates the card type from which to read: 0= All cards |
OUT | GLOBAL | glMicroVolts | L | It is the voltage read expressed in micro Volts. |
OUT | GLOBAL | gbError | B | Variable containing the error code |
Error
Once invoked the function if there are any errors the error variable having the following values:
0 - No errors
1 - Disconnected input
Example
... ; Reading hot junction card_type = 0 IR10HJRead (HOT, gbCardType, glMicroVolts, gbError) ...
Note
-
The function initializes the scaling parameters of ANINP device passed to the function, as follows:
HOT:scaleA = 1 HOT:scaleB = 1 HOT:scaleC = 0