en:software:qview:qview_6:qcl_library:vc10tcouplen

This translation is older than the original page and might be outdated. See what has changed.

VC10TCoupleN

The VC10TCoupleN function Converts a voltage value, expressed in microvolts, to the corresponding temperature value, expressed in tenths of a Celsius degree, connected with a thermocouple type N.
Input range : from -4000 μV to 47600 μV
Output range : from 2010 °C-1 to 13024 °C-1

VC10TCoupleN (mvhot, dgradi_hot, gbError)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
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

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

...
 
 
; Cold-junction reading
 
card_type = 0	; using L1TT0 card
 
IR10CJRead (COLD, card_type, dgradi_cold, error)
 
...
 
; Heat-junction reading
 
card_type = 0
 
IR10HJRead (HOT, card_type, mvhot, error)
 
...
 
VC10TCoupleN (mvhot, dgradi_hot, gbError)
 
...
 
temperature = dgradi_cold + dgradi_hot	;Temperature in tenths of a degree
 
 
 
...
  • Last modified: 2019/08/29 17:01