From 2b9943ba0d28449a590acfa8a41555b174b6ba84 Mon Sep 17 00:00:00 2001 From: Christian Kolset Date: Mon, 27 Apr 2026 16:53:14 -0600 Subject: Improved arduino interface. Now allowing the user to configure pins on the fly. --- core/__pycache__/__init__.cpython-312.pyc | Bin 273 -> 264 bytes core/__pycache__/acquisition.cpython-312.pyc | Bin 11489 -> 11456 bytes core/__pycache__/acquisition.cpython-314.pyc | Bin 13170 -> 13586 bytes core/__pycache__/profile.cpython-312.pyc | Bin 14202 -> 14494 bytes core/__pycache__/profile.cpython-314.pyc | Bin 13214 -> 16023 bytes core/__pycache__/signal_processor.cpython-312.pyc | Bin 24645 -> 24525 bytes core/__pycache__/signal_processor.cpython-314.pyc | Bin 29226 -> 30137 bytes core/profile.py | 19 +++++++++++++++---- 8 files changed, 15 insertions(+), 4 deletions(-) (limited to 'core') diff --git a/core/__pycache__/__init__.cpython-312.pyc b/core/__pycache__/__init__.cpython-312.pyc index 79fc26c..91f5de3 100644 Binary files a/core/__pycache__/__init__.cpython-312.pyc and b/core/__pycache__/__init__.cpython-312.pyc differ diff --git a/core/__pycache__/acquisition.cpython-312.pyc b/core/__pycache__/acquisition.cpython-312.pyc index d1b61fc..cb5f3f3 100644 Binary files a/core/__pycache__/acquisition.cpython-312.pyc and b/core/__pycache__/acquisition.cpython-312.pyc differ diff --git a/core/__pycache__/acquisition.cpython-314.pyc b/core/__pycache__/acquisition.cpython-314.pyc index 8a48b96..1b9ff56 100644 Binary files a/core/__pycache__/acquisition.cpython-314.pyc and b/core/__pycache__/acquisition.cpython-314.pyc differ diff --git a/core/__pycache__/profile.cpython-312.pyc b/core/__pycache__/profile.cpython-312.pyc index 9105704..162a593 100644 Binary files a/core/__pycache__/profile.cpython-312.pyc and b/core/__pycache__/profile.cpython-312.pyc differ diff --git a/core/__pycache__/profile.cpython-314.pyc b/core/__pycache__/profile.cpython-314.pyc index f009c3f..b790fac 100644 Binary files a/core/__pycache__/profile.cpython-314.pyc and b/core/__pycache__/profile.cpython-314.pyc differ diff --git a/core/__pycache__/signal_processor.cpython-312.pyc b/core/__pycache__/signal_processor.cpython-312.pyc index 505a573..4572e55 100644 Binary files a/core/__pycache__/signal_processor.cpython-312.pyc and b/core/__pycache__/signal_processor.cpython-312.pyc differ diff --git a/core/__pycache__/signal_processor.cpython-314.pyc b/core/__pycache__/signal_processor.cpython-314.pyc index 4a945a6..9076bcf 100644 Binary files a/core/__pycache__/signal_processor.cpython-314.pyc and b/core/__pycache__/signal_processor.cpython-314.pyc differ diff --git a/core/profile.py b/core/profile.py index ef8c55b..d21bf2f 100644 --- a/core/profile.py +++ b/core/profile.py @@ -216,13 +216,13 @@ class ProfileManager: # ── Devices ────────────────────────────────────────────────────── _DEVICE_FACTORIES = {} try: - from devices.analog_input import AnalogInputDevice - _DEVICE_FACTORIES["analog_input"] = AnalogInputDevice + from devices.arduino_device import ArduinoDevice + _DEVICE_FACTORIES["arduino"] = ArduinoDevice except Exception: pass try: - from devices.digital_io import DigitalIODevice - _DEVICE_FACTORIES["digital_io"] = DigitalIODevice + from devices.nidaqmx_device import NidaqmxDevice + _DEVICE_FACTORIES["nidaqmx"] = NidaqmxDevice except Exception: pass try: @@ -230,6 +230,17 @@ class ProfileManager: _DEVICE_FACTORIES["serial"] = SerialDevice except Exception: pass + # Backward compatibility with old profiles + try: + from devices.analog_input import AnalogInputDevice + _DEVICE_FACTORIES["analog_input"] = AnalogInputDevice + except Exception: + pass + try: + from devices.digital_io import DigitalIODevice + _DEVICE_FACTORIES["digital_io"] = DigitalIODevice + except Exception: + pass # Clear all existing devices — profile defines the complete device set for dev in list(registry.all_instances()): -- cgit v1.2.3