STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
FakeT7Device::Options Struct Reference

#include <T7Stream.hpp>

Collaboration diagram for FakeT7Device::Options:
[legend]

Public Attributes

bool realtime = false
 sleep each read as long as the scans would take
int64_t serial = 470000000
double rate_cap_hz = 0.0
 >0: the "device" rounds the scan rate down to this
uint64_t dummy_scan_every = 0
 >0: every Nth scan comes back as kDummyValue
int fail_read_after = -1
 >=0: throw on the read after this many succeed
std::function< double(int ain, double t)> signal
 Volts on ain at t seconds into the stream; empty = the default sine.
double device_temp_k = 298.15
 what TEMPERATURE_DEVICE_K (and AIN14) report
std::shared_ptr< FakeT7Unit > unit
 The device this handle talks to; null = a fresh unit of its own.
bool stop_only_own_stream = false
 LJM answers eStreamStop locally (1225) on a handle that did not start the stream, without telling the device.
int fail_stop_code = 0
 !=0: every stream stop fails with this code (e.g.

Detailed Description

Definition at line 251 of file T7Stream.hpp.

Member Data Documentation

◆ device_temp_k

what TEMPERATURE_DEVICE_K (and AIN14) report

Definition at line 260 of file T7Stream.hpp.

◆ dummy_scan_every

>0: every Nth scan comes back as kDummyValue

Definition at line 255 of file T7Stream.hpp.

◆ fail_read_after

>=0: throw on the read after this many succeed

Definition at line 256 of file T7Stream.hpp.

◆ fail_stop_code

!=0: every stream stop fails with this code (e.g.

the link dropped).

Definition at line 268 of file T7Stream.hpp.

◆ rate_cap_hz

>0: the "device" rounds the scan rate down to this

Definition at line 254 of file T7Stream.hpp.

◆ realtime

sleep each read as long as the scans would take

Definition at line 252 of file T7Stream.hpp.

◆ serial

Definition at line 253 of file T7Stream.hpp.

◆ signal

std::function<double(int ain, double t)> fsw::t7::FakeT7Device::Options::signal

Volts on ain at t seconds into the stream; empty = the default sine.

Not consulted for AIN14, which always follows device_temp_k.

Definition at line 259 of file T7Stream.hpp.

◆ stop_only_own_stream

LJM answers eStreamStop locally (1225) on a handle that did not start the stream, without telling the device.

Synnax found a new handle's stop does reach a T7; this models the LJM where it would not, so the session's fallback is exercised.

Definition at line 266 of file T7Stream.hpp.

◆ unit

std::shared_ptr<FakeT7Unit> fsw::t7::FakeT7Device::Options::unit

The device this handle talks to; null = a fresh unit of its own.

Definition at line 262 of file T7Stream.hpp.


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