en:software:qview:qview_6:qcl_library:ir10cjread

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

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.

IR10CJRead (COLD, gbCardType, glDCelsius, gbError)

Parameters:

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

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

...
 
; Cold-junction reading
 
card_type = 0	; using of L1TT0 card
 
IR10CJRead (COLD, gbCardType, glDCelsius, gbError)
 
...

Note

The function initializes the scaling parameters of the ANINP device passed to the function, as follows mode:

	COLD:scaleA  = 1
	COLD:scaleB  = 1
	COLD:scaleC  = 0
  • Last modified: 2019/08/29 17:01