From 125494c9df9067b9480dbfac79dac6fcd6f9b678 Mon Sep 17 00:00:00 2001 From: AtMostafa Date: Wed, 16 Jun 2021 15:05:42 +0100 Subject: [PATCH] use recording attr to define Analog IO --- pyControl/hardware.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyControl/hardware.py b/pyControl/hardware.py index 6e04305d..09cdaf26 100644 --- a/pyControl/hardware.py +++ b/pyControl/hardware.py @@ -93,7 +93,7 @@ def off(): def get_analog_inputs(): # Print dict of analog inputs {name: {'ID': ID, 'Fs':sampling rate}} print({io.name:{'ID': io.ID, 'Fs': io.sampling_rate} - for io in IO_dict.values() if isinstance(io, Analog_input)}) + for io in IO_dict.values() if hasattr(io,'recording')}) # IO_object ------------------------------------------------------------------- @@ -496,4 +496,4 @@ def _timer_callback(self): fw.timer.set(self.pulse_dur, fw.hardw_typ, self.ID) fw.data_output_queue.put((fw.current_time, fw.event_typ, self.event_ID)) self.state = not self.state - self.sync_pin.value(self.state) \ No newline at end of file + self.sync_pin.value(self.state)