STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
T7Convert.hpp File Reference
Include dependency graph for T7Convert.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fsw
 Motorized ball valve position: raw ADC counts -> % open.
namespace  fsw::t7

Functions

double fsw::t7::cjc_device_offset_k (double device_temp_k, double ain14_v)
 AIN14 offset (K) that makes slope*ain14_v land on the device's own temperature reading.
double fsw::t7::cjc_temp_c (double ain14_v, double device_offset_k, double cjc_offset_k)
 Cold-junction temperature (C) from a streamed AIN14 reading.
double fsw::t7::pt_psi (double volts, const config::T7Channel &ch)
 PT: linear between the signal's zero and full-scale outputs.
double fsw::t7::lc_kg (double volts, const config::T7Channel &ch)
 LC: a bridge's output is sensitivity x excitation at rated load.
double fsw::t7::tc_c (double volts, double cold_junction_c)
 Type K thermocouple: the measured EMF plus the EMF the cold junction subtracts.
double fsw::t7::rtd_ohms (double volts, const config::T7Channel &ch)
 RTD on an LJTick-Resistance: the divider's output volts -> the RTD's ohms.
double fsw::t7::rtd_c (double volts, const config::T7Channel &ch)
 RTD: ohms -> C on the IEC 60751 curve (full Callendar-Van Dusen, C term below 0 C).
const char * fsw::t7::calibrated_field (const std::string &kind)
 The Elodin field a calibrated channel of this kind publishes ("pressure_psi", ...), or "" for a kind with no calibrated table (VOLTAGE).

Variables

constexpr double fsw::t7::kAin14SlopeKPerV = -92.6
 The T7's internal temperature sensor (an LM94021 on AIN14) reads "Device temperature K = volts * -92.6 + 467.6" (T-series datasheet 18.0 Internal Temp Sensor; the same values are the nominal Temp_Slope / Temp_Offset in 20.0.1 T7 Calibration Constants).
constexpr double fsw::t7::kAin14NominalOffsetK = 467.6
 Nominal AIN14 offset (K), datasheet 18.0.