4.2.15 - TCVoltsToTemp() [UE9 Datasheet] | LabJack
« Close

Datasheets and User Guides

App Notes

Software & Driver


4.2.15 - TCVoltsToTemp() [UE9 Datasheet]

A utility function to convert thermocouple voltage readings to temperature.


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

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

  • 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.


  • pTCTempK – Returns the calculated thermocouple temperature.