diff options
| author | Christian Kolset <ckolset@colostate.edu> | 2026-07-27 16:47:47 -0600 |
|---|---|---|
| committer | Christian Kolset <ckolset@colostate.edu> | 2026-07-27 16:47:47 -0600 |
| commit | 49294cdeb57b537308145e6ec552d05e61e69dfa (patch) | |
| tree | bfe30e5894ffb4ce4104b62000e3e0b7ecc471c7 /api_layers/protocols/scpi.py | |
| parent | 91b0b613f0b58498315ef91f6a541dd1089b88de (diff) | |
Add simulation handling to protocol layers and update motion_capture setting
Diffstat (limited to 'api_layers/protocols/scpi.py')
| -rw-r--r-- | api_layers/protocols/scpi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api_layers/protocols/scpi.py b/api_layers/protocols/scpi.py index 730f8e0..526ed21 100644 --- a/api_layers/protocols/scpi.py +++ b/api_layers/protocols/scpi.py @@ -73,6 +73,8 @@ class SCPILayer(BaseProtocol): ch = next((c for c in self.channels if c.channel_id == channel_id), None) if ch is None or not ch.write_cmd: return False + if self.simulate: + return True try: cmd = ch.write_cmd.format(value=value) self._ser.write(f"{cmd}\n".encode()) |
