Crates.io | thermocouple |
lib.rs | thermocouple |
version | 0.1.3 |
source | src |
created_at | 2019-07-21 15:46:12.42973 |
updated_at | 2021-03-14 20:04:05.101813 |
description | thermocouple routines |
homepage | |
repository | https://github.com/richardeoin/thermocouple |
max_upload_size | |
id | 150580 |
size | 422,488 |
Thermocouple routines.
Provides a sense_temperature
method to convert thermoelectric
potential to temperature. The following thermocouple types are supported:
This library includes newtype types, or wrapper types, to help with using the proper units when doing calculations. I investigated using a dimensional analysis crate such as uom or dimensioned instead of making my own newtype types. However after experimentation, I found this to be difficult to use and not at all lightweight.
The underlying storage type is either f64
(default) or f32
. For the
f64
storage type, the results from this crate match the NIST ITS-90
Thermocouple Database exactly.
Add this to your Cargo.toml
:
[dependencies]
thermocouple = "0.1.3"
and this to your crate root:
extern crate thermocouple;