« Close

Datasheets and User Guides

App Notes

Software & Driver

 

2.15 - TCVoltsToTemp()

A utility function to convert thermocouple voltage readings to temperature.

Declaration:

LJ_ERROR _stdcall TCVoltsToTemp (  long TCType,
                                   double TCVolts,
                                   double CJTempK,
                                   double *pTCTempK)

Parameter Description:
Returns: LabJack errorcodes or 0 for no error.
Inputs:

  • TCType – A constant that specifies the thermocouple type: LJ_ttB, LJ_ttE, LJ_ttJ, LJ_ttK, LJ_ttN, LJ_ttR, LJ_ttS, or LJ_ttT.
  • TCVolts – The thermocouple voltage.
  • CJTempK – The temperature of the cold junction in degrees K.

Outputs:

  • pTCTempK – Returns the calculated thermocouple temperature.