w
This commit is contained in:
@@ -153,12 +153,15 @@ class GalilRIO(PSIDeviceBase):
|
||||
|
||||
# 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)
|
||||
|
||||
Reference in New Issue
Block a user