Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:software:qview:qview_6:qcl_library:ir10hjread [2017/03/23 16:33] – created qem103en:software:qview:qview_6:qcl_library:ir10hjread [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== 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 ===
 +
 +<code QCL>
 +...
 +
 +; Reading hot junction
 +
 +card_type = 0
 +
 +IR10HJRead (HOT, gbCardType, glMicroVolts, gbError)
 +
 +...
 +</code>
 +
 +=== Note ===
 +
 +  * The function initializes the scaling parameters of ANINP device passed to the function, as follows:
 +<code QCL>
 + HOT:scaleA  = 1
 + HOT:scaleB  = 1
 + HOT:scaleC  = 0
 +</code>