Skip to content

nowacklab/cernox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cernox

Quick usage

import cernox
T = cernox.temperature_for("X160190")
R = T(200.0) # R in Ohms, T in K

Explanation

A Cernox is defined by its CernoxCalibration, which may be obtained from the serial number

calibration = cernox.calibration("X160190")

This loads the calibration data file X160190.dat from cernox.calibration_data_dir. To add a new Cernox, put the calibration data into the calibration-data directory of this package (default), or wherever you would like to store calibration data, and pass the path in the calibration_data_dir argument.

Once you have a CernoxCalibration, the temperature is determined from the resistance by linearly interpolating the calibration data:

cernox.temperature(calibration, R_Ohm = 200.0) # T in K

The function temperature_for is provided for convenience to automate these steps.

About

Read out a Lakeshore Cernox temperature from a measured resistance using calibration data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages