From d44022eeac8dde8adcbc9921c80e2ca53acfd303 Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 10 Feb 2026 15:55:52 +0100 Subject: [PATCH] w --- csaxs_bec/devices/omny/galil/galil_rio.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/csaxs_bec/devices/omny/galil/galil_rio.py b/csaxs_bec/devices/omny/galil/galil_rio.py index d002201..8030c57 100644 --- a/csaxs_bec/devices/omny/galil/galil_rio.py +++ b/csaxs_bec/devices/omny/galil/galil_rio.py @@ -164,7 +164,7 @@ class GalilRIODigitalOutSignal(GalilRIOSignal): # We reuse the logic implemente Signal for controlling digital outputs of the Galil RIO controller. """ - _NUM_DIGITAL_OUTPUT_CHANNELS = 10 + _NUM_DIGITAL_OUTPUT_CHANNELS = 8 def _socket_get(self) -> float: """Get command for the readback signal""" @@ -245,8 +245,12 @@ class GalilRIO(PSIDeviceBase): ### Analog input channels ### ############################# - analog_in = DDC(_create_analog_channels(8)) # Creates an_ch0 to an_ch7 - digital_out = DDC(_create_digital_output_channels(10)) # Creates di_out0 to di_out9 + analog_in = DDC( + _create_analog_channels(GalilRIOSignalRO._NUM_ANALOG_CHANNELS) + ) # Creates an_ch0 to an_ch7 + digital_out = DDC( + _create_digital_output_channels(GalilRIODigitalOutSignal._NUM_DIGITAL_OUTPUT_CHANNELS) + ) # Creates di_out0 to di_out7 def __init__( self,