From dc34d9241207b75802452bb4426c2babfc26578b Mon Sep 17 00:00:00 2001 From: appel_c Date: Thu, 22 Jan 2026 15:42:29 +0100 Subject: [PATCH] w --- csaxs_bec/devices/omny/galil/galil_rio.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/csaxs_bec/devices/omny/galil/galil_rio.py b/csaxs_bec/devices/omny/galil/galil_rio.py index 76407ea..9b50d02 100644 --- a/csaxs_bec/devices/omny/galil/galil_rio.py +++ b/csaxs_bec/devices/omny/galil/galil_rio.py @@ -148,20 +148,17 @@ class GalilRIO(PSIDeviceBase): def read(self): """Read all 8 analog input channels from the Galil RIO controller.""" # Get number of channels - channels: list[tuple[int, str]] = [()] + channels: list[tuple[int, str]] = [] res = {} # This yields tuples of cpt, signal for walk in self.walk_signals(): - logger.info(f"Walking signal: {walk.item.name} of type {type(walk.item)}") if isinstance(walk.item, GalilRIOSignalRO): - logger.info(f"Adding channel {walk.item._channel} ({walk.item.name}) to read list") channels.append( (walk.item._channel, walk.item.name) ) # pylint: disable=protected-access # Read all channels in one command - logger.info(f"Reading channels: {channels}") cmd = "MG@" + ",@".join([f"AN[{ii}]" for ii, _ in channels]) logger.info(f"Reading Galil RIO channels with command: {cmd}") ret = self.controller.socket_put_and_receive(cmd)