Differences

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

Link to this comparison view

en:software:qview:qview_6:qcl_library:ir10cjread [2017/03/21 18:04] – created qem103en:software:qview:qview_6:qcl_library:ir10cjread [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== IR10CJRead ======
 +
 +**D = **//Device(ANINP)//
 +
 +**R = **//Reading functions//
 +
 +The IR10CJRead function __reads the temperature value relative to the reference point of a card that supports type "thermocouple" inputs__.
 +
 +===== IMPLEMENTATION =====
 +
 +**IR10CJRead (COLD, gbCardType, glDCelsius, gbError)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  INTDEVICE\\ ANINP  |  COLD  |  -  |Mnemonic name of ANINP device used for COLDJ input|
 +|  IN  |  GLOBAL  |  gbCardType  |  B  |Variable that indicates the card type from which to read:\\ 0= L1TT0 \\ 1= H1TT0|
 +|  OUT  |  GLOBAL  |  glDCelsius  |  L  |It's the read temperature value expressed in tenths of a degree Celsius.|
 +|  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 error\\
 +1 - GbCardType defined card not supported
 +
 +=== Example ===
 +
 +<code QCL>
 +...
 +
 +; Cold-junction reading
 +
 +card_type = 0 ; using of L1TT0 card
 +
 +IR10CJRead (COLD, gbCardType, glDCelsius, gbError)
 +
 +...
 +</code>
 +
 +=== Note ===
 +
 +The function initializes the scaling parameters of the ANINP device passed to the function, as follows mode:
 +<code QCL>
 + COLD:scaleA  = 1
 + COLD:scaleB  = 1
 + COLD:scaleC  = 0
 +</code>