Converts thermocouple voltage to temperature.
LJM_ERROR_RETURN LJM_TCVoltsToTemp(
int TCType,
double TCVolts,
double CJTempK,
double * pTCTempK)
LJM errorcodes or 0 for no error.
Use this function to easily calculate thermocouple temperatures from voltage readings. When thermocouples are connected to the AIN0-AIN3 screw terminals, the cold-junction temperature can be obtained from AIN14, which maps to a nearby temp sensor inside most LabJack devices.
[C/C++] Get the temperature of a K type thermocouple.
int LJMError; double TCTempKelvin; LJMError = LJM_TCVoltsToTemp(6004, 0.00134, 299.039, &TCTempKelvin); printf("%f\n", TCTempKelvin);