Skip to main content
Skip table of contents

TCVoltsToTemp() [UD Library]

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.
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.