From 4db119fb9c04428e7aef6f1a278c1639aa867baf Mon Sep 17 00:00:00 2001 From: Christian Kolset Date: Tue, 21 Apr 2026 22:58:30 -0600 Subject: 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. --- ui/__pycache__/__init__.cpython-312.pyc | Bin 151 -> 138 bytes ui/__pycache__/add_device_dialog.cpython-312.pyc | Bin 0 -> 21811 bytes ui/__pycache__/config_dialog.cpython-312.pyc | Bin 0 -> 6931 bytes ui/__pycache__/control_editor.cpython-312.pyc | Bin 20107 -> 20127 bytes ui/__pycache__/control_panel.cpython-312.pyc | Bin 39988 -> 39996 bytes ui/__pycache__/main_window.cpython-312.pyc | Bin 25316 -> 25368 bytes ui/__pycache__/profile_manager_ui.cpython-312.pyc | Bin 8368 -> 8360 bytes ui/__pycache__/strip_chart.cpython-312.pyc | Bin 14890 -> 14890 bytes ui/control_editor.py | 2 +- ui/main_window.py | 8 ++++++-- ui/windows/__pycache__/__init__.cpython-312.pyc | Bin 159 -> 146 bytes .../__pycache__/devices_window.cpython-312.pyc | Bin 22019 -> 22030 bytes ui/windows/__pycache__/plot_window.cpython-312.pyc | Bin 44562 -> 44675 bytes .../__pycache__/settings_window.cpython-312.pyc | Bin 15917 -> 15924 bytes .../__pycache__/signals_window.cpython-312.pyc | Bin 51395 -> 51458 bytes 15 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 ui/__pycache__/add_device_dialog.cpython-312.pyc create mode 100644 ui/__pycache__/config_dialog.cpython-312.pyc (limited to 'ui') diff --git a/ui/__pycache__/__init__.cpython-312.pyc b/ui/__pycache__/__init__.cpython-312.pyc index 6ed2349..fb20d59 100644 Binary files a/ui/__pycache__/__init__.cpython-312.pyc and b/ui/__pycache__/__init__.cpython-312.pyc differ diff --git a/ui/__pycache__/add_device_dialog.cpython-312.pyc b/ui/__pycache__/add_device_dialog.cpython-312.pyc new file mode 100644 index 0000000..8af1f9c Binary files /dev/null and b/ui/__pycache__/add_device_dialog.cpython-312.pyc differ diff --git a/ui/__pycache__/config_dialog.cpython-312.pyc b/ui/__pycache__/config_dialog.cpython-312.pyc new file mode 100644 index 0000000..5a051dc Binary files /dev/null and b/ui/__pycache__/config_dialog.cpython-312.pyc differ diff --git a/ui/__pycache__/control_editor.cpython-312.pyc b/ui/__pycache__/control_editor.cpython-312.pyc index f1716c6..d12d50f 100644 Binary files a/ui/__pycache__/control_editor.cpython-312.pyc and b/ui/__pycache__/control_editor.cpython-312.pyc differ diff --git a/ui/__pycache__/control_panel.cpython-312.pyc b/ui/__pycache__/control_panel.cpython-312.pyc index c54cd25..834c948 100644 Binary files a/ui/__pycache__/control_panel.cpython-312.pyc and b/ui/__pycache__/control_panel.cpython-312.pyc differ diff --git a/ui/__pycache__/main_window.cpython-312.pyc b/ui/__pycache__/main_window.cpython-312.pyc index b99d7c2..c5383cb 100644 Binary files a/ui/__pycache__/main_window.cpython-312.pyc and b/ui/__pycache__/main_window.cpython-312.pyc differ diff --git a/ui/__pycache__/profile_manager_ui.cpython-312.pyc b/ui/__pycache__/profile_manager_ui.cpython-312.pyc index e66a754..c9fbb4a 100644 Binary files a/ui/__pycache__/profile_manager_ui.cpython-312.pyc and b/ui/__pycache__/profile_manager_ui.cpython-312.pyc differ diff --git a/ui/__pycache__/strip_chart.cpython-312.pyc b/ui/__pycache__/strip_chart.cpython-312.pyc index ba3ca5d..47dbea1 100644 Binary files a/ui/__pycache__/strip_chart.cpython-312.pyc and b/ui/__pycache__/strip_chart.cpython-312.pyc differ diff --git a/ui/control_editor.py b/ui/control_editor.py index 93b8110..4d18aef 100644 --- a/ui/control_editor.py +++ b/ui/control_editor.py @@ -233,7 +233,7 @@ class ControlEditorDialog(QDialog): btn_row = QHBoxLayout(); btn_row.addStretch() cancel = QPushButton("Cancel"); cancel.clicked.connect(self.reject) - ok = QPushButton("Save Control") + ok = QPushButton("Create Control") ok.setObjectName("applyButton"); ok.setDefault(True) ok.clicked.connect(self._on_ok) btn_row.addWidget(cancel); btn_row.addWidget(ok) 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() diff --git a/ui/windows/__pycache__/__init__.cpython-312.pyc b/ui/windows/__pycache__/__init__.cpython-312.pyc index 244f840..37c4a45 100644 Binary files a/ui/windows/__pycache__/__init__.cpython-312.pyc and b/ui/windows/__pycache__/__init__.cpython-312.pyc differ diff --git a/ui/windows/__pycache__/devices_window.cpython-312.pyc b/ui/windows/__pycache__/devices_window.cpython-312.pyc index f2ce20a..ca01f31 100644 Binary files a/ui/windows/__pycache__/devices_window.cpython-312.pyc and b/ui/windows/__pycache__/devices_window.cpython-312.pyc differ diff --git a/ui/windows/__pycache__/plot_window.cpython-312.pyc b/ui/windows/__pycache__/plot_window.cpython-312.pyc index 5c957ed..c2e3745 100644 Binary files a/ui/windows/__pycache__/plot_window.cpython-312.pyc and b/ui/windows/__pycache__/plot_window.cpython-312.pyc differ diff --git a/ui/windows/__pycache__/settings_window.cpython-312.pyc b/ui/windows/__pycache__/settings_window.cpython-312.pyc index 7da4e1a..72f96e1 100644 Binary files a/ui/windows/__pycache__/settings_window.cpython-312.pyc and b/ui/windows/__pycache__/settings_window.cpython-312.pyc differ diff --git a/ui/windows/__pycache__/signals_window.cpython-312.pyc b/ui/windows/__pycache__/signals_window.cpython-312.pyc index 6b423d8..0526a85 100644 Binary files a/ui/windows/__pycache__/signals_window.cpython-312.pyc and b/ui/windows/__pycache__/signals_window.cpython-312.pyc differ -- cgit v1.2.3