def TCVoltsToTemp(TCType, TCVolts, CJTempK):
 if (os.name == 'nt'):
  staticLib = ctypes.windll.LoadLibrary('labjackud')
  pTCTempK = ctypes.c_double()
  ec = staticLib.TCVoltsToTemp(ctypes.c_long(TCType), ctypes.c_double(TCVolts), ctypes.c_double(CJTempK), ctypes.byref(pTCTempK))
  if (ec != 0):
   raise LabJackException(ec)
  return pTCTempK.value
 else:
  raise LabJackException(0, 'Function only supported for Windows')

def TCVoltsToTemp ( TCType , TCVolts , CJTempK ) : if ( os . name == 'nt' ) : staticLib = ctypes . windll . LoadLibrary ( 'labjackud' ) pTCTempK = ctypes . c_double ( ) ec = staticLib . TCVoltsToTemp ( ctypes . c_long ( TCType ) , ctypes . c_double ( TCVolts ) , ctypes . c_double ( CJTempK ) , ctypes . byref ( pTCTempK ) ) if ( ec != 0 ) : raise LabJackException ( ec ) return pTCTempK . value else : raise LabJackException ( 0 , 'Function only supported for Windows' )
converts a thermo couple voltage reading to an appropriate temperature reading .