|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <T7Stream.hpp>
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. | |
Definition at line 251 of file T7Stream.hpp.
| double fsw::t7::FakeT7Device::Options::device_temp_k = 298.15 |
what TEMPERATURE_DEVICE_K (and AIN14) report
Definition at line 260 of file T7Stream.hpp.
| uint64_t fsw::t7::FakeT7Device::Options::dummy_scan_every = 0 |
>0: every Nth scan comes back as kDummyValue
Definition at line 255 of file T7Stream.hpp.
>=0: throw on the read after this many succeed
Definition at line 256 of file T7Stream.hpp.
!=0: every stream stop fails with this code (e.g.
the link dropped).
Definition at line 268 of file T7Stream.hpp.
| double fsw::t7::FakeT7Device::Options::rate_cap_hz = 0.0 |
>0: the "device" rounds the scan rate down to this
Definition at line 254 of file T7Stream.hpp.
| bool fsw::t7::FakeT7Device::Options::realtime = false |
sleep each read as long as the scans would take
Definition at line 252 of file T7Stream.hpp.
| int64_t fsw::t7::FakeT7Device::Options::serial = 470000000 |
Definition at line 253 of file T7Stream.hpp.
| 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.
| bool fsw::t7::FakeT7Device::Options::stop_only_own_stream = false |
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.
| 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.