Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:software:qview:qview_6:qcl_library:vc10tcoupleb [2017/03/23 16:39] – created qem103 | en:software:qview:qview_6:qcl_library:vc10tcoupleb [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== VC10TCoupleB ====== | ||
+ | |||
+ | The VC10TCoupleB 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 B__.\\ | ||
+ | Input range : from 200 μV to 13850 μV\\ | ||
+ | Output range : from 2105 °C< | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **VC10TCoupleB (mvhot, dgradi_hot, gbError)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | ==== 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, | ||
+ | |||
+ | ... | ||
+ | |||
+ | ; Hot-junction reading | ||
+ | |||
+ | card_type = 0 | ||
+ | |||
+ | IR10HJRead (HOT, card_type, mvhot, error) | ||
+ | |||
+ | ... | ||
+ | |||
+ | VC10TCoupleB (mvhot, dgradi_hot, gbError) | ||
+ | |||
+ | ... | ||
+ | |||
+ | temperature = dgradi_cold + dgradi_hot ; | ||
+ | |||
+ | ... | ||
+ | </ | ||