Thermocouples
Thermocouple Polynomial Equations.
TYPE tuples are coefficients for converting T in Celsius to millivolts. INVERSE tuples are coefficients for converting millivolts to T in Celsius. First two values in tuple indicate lower and upper limits of equation validity, in Celsius for TYPE tuples and in millivolts for INVERSE tuples.
- nupylab.utilities.thermocouples.calculate_temperature(millivoltage: float, tc_type: str, cold_junction_temp: float = 23) float
Calculate temperature with cold junction correction.
- Parameters:
millivoltage – measured reading in millivolts.
tc_type – thermocouple type.
cold_junction_temp – cold junction temperature in Celsius.
- Returns:
corrected thermocouple temperature in Celsius.
- Raises:
ValueError if millivoltage or cold_junction_temp are outside applicable TC –
range. –
- nupylab.utilities.thermocouples.calculate_voltage(temperature: float, tc_type: str, cold_junction_temp: float = 23) float
Calculate measured voltage with cold junction correction.
- Parameters:
temperature – hot junction temperature in Celsius.
tc_type – thermocouple type.
cold_junction_temp – cold junction temperature in Celsius.
- Returns:
measured voltage in millivolts.
- Raises:
ValueError if temperature or cold_junction_temp are outside applicable TC –
range. –
- nupylab.utilities.thermocouples.convert_to_temperature(millivoltage: float, tc_type: str) float
Convert voltage in millivolts to temperature in Celsius.
- nupylab.utilities.thermocouples.convert_to_voltage(temperature: float, tc_type: str) float
Convert temperature in Celsius to voltage in millivolts.