diff options
| author | Christian Kolset <christian.kolset@gmail.com> | 2026-04-21 22:58:30 -0600 |
|---|---|---|
| committer | Christian Kolset <christian.kolset@gmail.com> | 2026-04-21 22:58:30 -0600 |
| commit | 4db119fb9c04428e7aef6f1a278c1639aa867baf (patch) | |
| tree | e0e0645559637e593f1bbfb9d713256028668527 /ui/main_window.py | |
| parent | 97e15f69b835af03b071c4eeb4547c65a02e6f80 (diff) | |
Major update to Output control
Including:
- Control panel
- Change status of simulation after devices creation.
- Arduino serial conflict with multiple channels.
- Claude instructions.
- Update to arduino on board code.
Diffstat (limited to 'ui/main_window.py')
| -rw-r--r-- | ui/main_window.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/main_window.py b/ui/main_window.py index a82a389..a123677 100644 --- a/ui/main_window.py +++ b/ui/main_window.py @@ -59,10 +59,14 @@ class MainWindow(QMainWindow): # ── Demo ────────────────────────────────────────────────────────────── def _init_demo_devices(self): + # NOTE: if you have a real Arduino, configure ard_0 and dio_0 to use + # the same port — port_registry ensures only one serial connection + # is opened, and both devices share it automatically. for dev in [ AnalogInputDevice(device_id="ai_0", num_channels=4, simulate=True, backend="nidaqmx"), - AnalogInputDevice(device_id="ard_0", num_channels=4, simulate=True, backend="arduino"), - DigitalIODevice (device_id="dio_0", num_inputs=4, num_outputs=4, simulate=True), + AnalogInputDevice(device_id="ard_0", num_channels=1, simulate=True, backend="arduino"), + DigitalIODevice (device_id="dio_0", num_inputs=2, num_outputs=4, + simulate=True, backend="arduino"), SerialDevice (device_id="ser_0", num_channels=3, simulate=True), ]: dev.connect() |
