diff options
| author | Christian Kolset <christian.kolset@gmail.com> | 2026-04-27 16:53:14 -0600 |
|---|---|---|
| committer | Christian Kolset <christian.kolset@gmail.com> | 2026-04-27 16:53:14 -0600 |
| commit | 2b9943ba0d28449a590acfa8a41555b174b6ba84 (patch) | |
| tree | e8bef8c9bc61dd7e2f9c8a9b177058a4b09546db /core | |
| parent | 67cfa0a514c7de4605ed7360e15a81aa781e510e (diff) | |
Improved arduino interface. Now allowing the user to configure pins on the fly.
Diffstat (limited to 'core')
| -rw-r--r-- | core/__pycache__/__init__.cpython-312.pyc | bin | 273 -> 264 bytes | |||
| -rw-r--r-- | core/__pycache__/acquisition.cpython-312.pyc | bin | 11489 -> 11456 bytes | |||
| -rw-r--r-- | core/__pycache__/acquisition.cpython-314.pyc | bin | 13170 -> 13586 bytes | |||
| -rw-r--r-- | core/__pycache__/profile.cpython-312.pyc | bin | 14202 -> 14494 bytes | |||
| -rw-r--r-- | core/__pycache__/profile.cpython-314.pyc | bin | 13214 -> 16023 bytes | |||
| -rw-r--r-- | core/__pycache__/signal_processor.cpython-312.pyc | bin | 24645 -> 24525 bytes | |||
| -rw-r--r-- | core/__pycache__/signal_processor.cpython-314.pyc | bin | 29226 -> 30137 bytes | |||
| -rw-r--r-- | core/profile.py | 19 |
8 files changed, 15 insertions, 4 deletions
diff --git a/core/__pycache__/__init__.cpython-312.pyc b/core/__pycache__/__init__.cpython-312.pyc Binary files differindex 79fc26c..91f5de3 100644 --- a/core/__pycache__/__init__.cpython-312.pyc +++ b/core/__pycache__/__init__.cpython-312.pyc diff --git a/core/__pycache__/acquisition.cpython-312.pyc b/core/__pycache__/acquisition.cpython-312.pyc Binary files differindex d1b61fc..cb5f3f3 100644 --- a/core/__pycache__/acquisition.cpython-312.pyc +++ b/core/__pycache__/acquisition.cpython-312.pyc diff --git a/core/__pycache__/acquisition.cpython-314.pyc b/core/__pycache__/acquisition.cpython-314.pyc Binary files differindex 8a48b96..1b9ff56 100644 --- a/core/__pycache__/acquisition.cpython-314.pyc +++ b/core/__pycache__/acquisition.cpython-314.pyc diff --git a/core/__pycache__/profile.cpython-312.pyc b/core/__pycache__/profile.cpython-312.pyc Binary files differindex 9105704..162a593 100644 --- a/core/__pycache__/profile.cpython-312.pyc +++ b/core/__pycache__/profile.cpython-312.pyc diff --git a/core/__pycache__/profile.cpython-314.pyc b/core/__pycache__/profile.cpython-314.pyc Binary files differindex f009c3f..b790fac 100644 --- a/core/__pycache__/profile.cpython-314.pyc +++ b/core/__pycache__/profile.cpython-314.pyc diff --git a/core/__pycache__/signal_processor.cpython-312.pyc b/core/__pycache__/signal_processor.cpython-312.pyc Binary files differindex 505a573..4572e55 100644 --- a/core/__pycache__/signal_processor.cpython-312.pyc +++ b/core/__pycache__/signal_processor.cpython-312.pyc diff --git a/core/__pycache__/signal_processor.cpython-314.pyc b/core/__pycache__/signal_processor.cpython-314.pyc Binary files differindex 4a945a6..9076bcf 100644 --- a/core/__pycache__/signal_processor.cpython-314.pyc +++ b/core/__pycache__/signal_processor.cpython-314.pyc 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()): |
