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

One [boards. More...

#include <T7Config.hpp>

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

Public Member Functions

uint8_t slot () const
 Elodin slot, same rule as BoardConfig::slot(): board_id % 10, 0 -> 10.
int effective_scans_per_read () const
 scans_per_read with the default applied; always >= 1.

Public Attributes

std::string section
 "boards.labjack_1"
std::string ip
std::string mac
int64_t serial = 0
 Optional; when non-zero t7_bridge checks the unit that answered.
int board_id = -1
bool enabled = true
double scan_rate_hz = 100.0
int resolution_index = 0
 STREAM_RESOLUTION_INDEX; 0 = device default.
double settling_us = 0.0
 STREAM_SETTLING_US; 0 = automatic.
int scans_per_read = 0
 Scans per LJM_eStreamRead; 0 = scan_rate/20 (a 50 ms block).
double cjc_offset_k = -3.0
 Thermocouple cold junction = T7 internal sensor + this (K).
std::vector< T7Channel > channels

Detailed Description

One [boards.

*] section with type = "T7".

Definition at line 68 of file T7Config.hpp.

Member Function Documentation

◆ effective_scans_per_read()

int fsw::config::T7Board::effective_scans_per_read ( ) const

scans_per_read with the default applied; always >= 1.

Definition at line 14 of file T7Config.cpp.

References scan_rate_hz, and scans_per_read.

◆ slot()

uint8_t fsw::config::T7Board::slot ( ) const
inline

Elodin slot, same rule as BoardConfig::slot(): board_id % 10, 0 -> 10.

Definition at line 89 of file T7Config.hpp.

References board_id.

Member Data Documentation

◆ board_id

int fsw::config::T7Board::board_id = -1

◆ channels

std::vector<T7Channel> fsw::config::T7Board::channels

Definition at line 86 of file T7Config.hpp.

Referenced by main().

◆ cjc_offset_k

double fsw::config::T7Board::cjc_offset_k = -3.0

Thermocouple cold junction = T7 internal sensor + this (K).

The default is LabJack's figure for the built-in screw terminals AIN0-AIN3: "expect the returned value [TEMPERATURE_DEVICE_K] minus 3 C to reflect the temperature of the built-in screw-terminals with an accuracy of +/-2.5 C" (datasheet 18.0). A TC on a CB37 (AIN4-13 are DB37 only) is at air temperature instead: TEMPERATURE_AIR_K, device - 4.3 K on USB,

  • 4.9 K on USB + Ethernet. Measure it on the stand either way and set it.

Definition at line 85 of file T7Config.hpp.

◆ enabled

bool fsw::config::T7Board::enabled = true

Definition at line 74 of file T7Config.hpp.

Referenced by main(), and engine.pipeline.stability.chug.Regulator::modelled().

◆ ip

std::string fsw::config::T7Board::ip

Definition at line 70 of file T7Config.hpp.

Referenced by board_simulator.SimulatedBoard::start().

◆ mac

std::string fsw::config::T7Board::mac

Definition at line 71 of file T7Config.hpp.

◆ resolution_index

int fsw::config::T7Board::resolution_index = 0

STREAM_RESOLUTION_INDEX; 0 = device default.

Definition at line 76 of file T7Config.hpp.

◆ scan_rate_hz

double fsw::config::T7Board::scan_rate_hz = 100.0

Definition at line 75 of file T7Config.hpp.

Referenced by effective_scans_per_read().

◆ scans_per_read

int fsw::config::T7Board::scans_per_read = 0

Scans per LJM_eStreamRead; 0 = scan_rate/20 (a 50 ms block).

Definition at line 78 of file T7Config.hpp.

Referenced by effective_scans_per_read().

◆ section

std::string fsw::config::T7Board::section

"boards.labjack_1"

Definition at line 69 of file T7Config.hpp.

◆ serial

int64_t fsw::config::T7Board::serial = 0

Optional; when non-zero t7_bridge checks the unit that answered.

Definition at line 72 of file T7Config.hpp.

◆ settling_us

double fsw::config::T7Board::settling_us = 0.0

STREAM_SETTLING_US; 0 = automatic.

Definition at line 77 of file T7Config.hpp.


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