STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
fsw::config::T7Channel Struct Reference

One streamed analog input. More...

#include <T7Config.hpp>

Collaboration diagram for fsw::config::T7Channel:
[legend]

Public Member Functions

int negative_ch () const
 AIN#_NEGATIVE_CH value: 199 = single-ended, else the paired odd input.

Public Attributes

int ain = -1
 AIN number on the device, 0-13.
std::string kind
 "PT" | "TC" | "LC" | "RTD" | "VOLTAGE" — what is wired to it.
std::string role
 Sensor name, e.g. "LOX Tank" — what the GUI calls it.
double range_v = 10
 +/- input range in volts: 10, 1, 0.1 or 0.01.
bool differential = false
 true: AIN(ain) - AIN(ain+1); ain must be even.
std::string tc_type
 Thermocouple type letter (kind == "TC" only): "K".
double full_scale = 0
 PT: psi at full output. LC: kg at rated output.
std::string signal
 PT output: "0-5V" "0.5-4.5V" "1-5V" "0-10V" "4-20mA".
double shunt_ohms = 0
 PT "4-20mA": the resistor the loop current crosses.
double sensitivity_mv_per_v = 0
 LC: rated output, mV per V of excitation.
double excitation_v = 0
 LC: bridge excitation voltage.
double r0_ohms = 0
 RTD: resistance at 0 C, 100 (Pt100) or 1000 (Pt1000).
double ljtr_ohms = 0
 RTD: the tick's fixed resistor, 1k/10k/100k/1M by model.
double vref_v = 2.5
 RTD: the tick's reference.

Detailed Description

One streamed analog input.

Definition at line 37 of file T7Config.hpp.

Member Function Documentation

◆ negative_ch()

int fsw::config::T7Channel::negative_ch ( ) const
inline

AIN#_NEGATIVE_CH value: 199 = single-ended, else the paired odd input.

Definition at line 62 of file T7Config.hpp.

References ain, and differential.

Member Data Documentation

◆ ain

◆ differential

bool fsw::config::T7Channel::differential = false

true: AIN(ain) - AIN(ain+1); ain must be even.

Definition at line 42 of file T7Config.hpp.

Referenced by negative_ch(), and fsw::config::detail::parse_t7_boards().

◆ excitation_v

double fsw::config::T7Channel::excitation_v = 0

LC: bridge excitation voltage.

Definition at line 52 of file T7Config.hpp.

Referenced by main(), and fsw::config::detail::parse_t7_boards().

◆ full_scale

double fsw::config::T7Channel::full_scale = 0

PT: psi at full output. LC: kg at rated output.

Definition at line 48 of file T7Config.hpp.

Referenced by main(), and fsw::config::detail::parse_t7_boards().

◆ kind

std::string fsw::config::T7Channel::kind

"PT" | "TC" | "LC" | "RTD" | "VOLTAGE" — what is wired to it.

Definition at line 39 of file T7Config.hpp.

Referenced by main(), fsw::config::detail::parse_t7_boards(), and backend.routers.layerx.Job::view().

◆ ljtr_ohms

double fsw::config::T7Channel::ljtr_ohms = 0

RTD: the tick's fixed resistor, 1k/10k/100k/1M by model.

Definition at line 57 of file T7Config.hpp.

Referenced by fsw::config::detail::parse_t7_boards().

◆ r0_ohms

double fsw::config::T7Channel::r0_ohms = 0

RTD: resistance at 0 C, 100 (Pt100) or 1000 (Pt1000).

Definition at line 56 of file T7Config.hpp.

Referenced by fsw::config::detail::parse_t7_boards().

◆ range_v

double fsw::config::T7Channel::range_v = 10

+/- input range in volts: 10, 1, 0.1 or 0.01.

Definition at line 41 of file T7Config.hpp.

Referenced by fsw::config::detail::parse_t7_boards(), and fsw::config::detail::anonymous_namespace{T7Config.cpp}::stream_limit_issues().

◆ role

std::string fsw::config::T7Channel::role

Sensor name, e.g. "LOX Tank" — what the GUI calls it.

Definition at line 40 of file T7Config.hpp.

Referenced by fsw::config::anonymous_namespace{SensorTables.cpp}::makeT7Ref(), and fsw::config::detail::parse_t7_boards().

◆ sensitivity_mv_per_v

double fsw::config::T7Channel::sensitivity_mv_per_v = 0

LC: rated output, mV per V of excitation.

Definition at line 51 of file T7Config.hpp.

Referenced by main(), and fsw::config::detail::parse_t7_boards().

◆ shunt_ohms

double fsw::config::T7Channel::shunt_ohms = 0

PT "4-20mA": the resistor the loop current crosses.

Definition at line 50 of file T7Config.hpp.

Referenced by main(), and fsw::config::detail::parse_t7_boards().

◆ signal

◆ tc_type

std::string fsw::config::T7Channel::tc_type

Thermocouple type letter (kind == "TC" only): "K".

Definition at line 43 of file T7Config.hpp.

Referenced by fsw::config::detail::parse_t7_boards().

◆ vref_v

double fsw::config::T7Channel::vref_v = 2.5

RTD: the tick's reference.

2.5 V +/-0.04 % per its datasheet; set a measured value here.

Definition at line 59 of file T7Config.hpp.

Referenced by fsw::config::detail::parse_t7_boards().


The documentation for this struct was generated from the following file: