Differences

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

Link to this comparison view

en:software:qview:qview_6:qcl_library:vc10tcouplek [2017/03/23 16:51] – created qem103en:software:qview:qview_6:qcl_library:vc10tcouplek [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VC10TCoupleK ======
 +
 +The VC10TCoupleK function __Converts a voltage value, expressed in microvolts, to the corresponding temperature value, expressed in tenths of a Celsius degree, connected to the thermocouple type K__.\\
 +Input range : from -6000 μV to 54800 μV\\
 +Output range : from -2702 °C<sup>-1</sup> to 13695 °C<sup>-1</sup>
 +
 +===== IMPLEMENTATION =====
 +
 +**VC10TCoupleK (mvhot, dgradi_hot, gbError)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  GLOBAL  |  mvhot  |  L  |It is the voltage value to convert expressed in micro Volts.|
 +|  OUT  |  GLOBAL  |  dgradi_hot  |  L  |It is the converted temperature value expressed in tenths of a Celsius degree.|
 +|  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 - Value less than the minimum\\
 +2 - Value higher than the maximum\\
 +3 - Value indicating disconnected input
 +
 +=== Example ===
 +
 +<code QCL>
 +...
 +
 +; Cold-junction reading
 +
 +card_type = 0 ; using L1TT0 card
 +
 +IR10CJRead (COLD, card_type, dgradi_cold, error)
 +
 +...
 +
 +; Hot-junction reading
 +
 +card_type = 0
 +
 +IR10HJRead (HOT, card_type, mvhot, error)
 +
 +...
 +
 +VC10TCoupleK (mvhot, dgradi_hot, gbError)
 +
 +...
 +
 +temperatura = dgradi_cold + dgradi_hot ;Temperature in tenths of a degree
 +
 +
 +...
 +</code>