pub(crate) struct SensorConfig {
pub(crate) scans_per_read: i32,
pub(crate) scan_rate_hz: f64,
pub(crate) channels_enabled: Vec<u8>,
pub(crate) gains: i32,
pub(crate) data_formats: Vec<String>,
pub(crate) measurement_units: Vec<String>,
pub(crate) labjack_on_off: bool,
pub(crate) calibrations: Option<HashMap<String, CalibrationSpec>>,
}Expand description
Raw sensor settings section from the dashboard configuration.
The archiver uses the enabled channel list and the calibration map from this section.
It copies the sampling fields into SampleConfig and ignores the rest. The serde
aliases accept the older names scan_rate and sampling_rate.
Fields§
§scans_per_read: i32Scans per LabJack stream read (older name scan_rate).
scan_rate_hz: f64Requested scan rate in Hz (older name sampling_rate).
channels_enabled: Vec<u8>Channels to archive; one consumer and writer task is started per entry.
gains: i32Gain setting. Parsed but not used by the archiver.
data_formats: Vec<String>Per-channel data formats. Parsed but not used by the archiver.
measurement_units: Vec<String>Per-channel measurement units. Parsed but not used by the archiver.
labjack_on_off: boolStreamer on/off switch. Parsed but not used by the archiver.
calibrations: Option<HashMap<String, CalibrationSpec>>Calibrations keyed by channel number as a string, for example "8".
Trait Implementations§
Source§impl Clone for SensorConfig
impl Clone for SensorConfig
Source§fn clone(&self) -> SensorConfig
fn clone(&self) -> SensorConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more