@@ -151,7 +151,7 @@ class GalilRIOSignalRO(GalilRIOSignal):
|
||||
|
||||
def _socket_get(self) -> float:
|
||||
"""Get command for the readback signal"""
|
||||
cmd = "MG@" + ",@".join([f"AN[{ii}]" for ii in range(self._NUM_ANALOG_CHANNELS)])
|
||||
cmd = "MG@" + ", @".join([f"AN[{ii}]" for ii in range(self._NUM_ANALOG_CHANNELS)])
|
||||
ret = self.controller.socket_put_and_receive(cmd)
|
||||
values = [float(val) for val in ret.strip().split(" ")]
|
||||
# This updates all channels' readbacks, including self._readback
|
||||
@@ -168,7 +168,7 @@ class GalilRIODigitalOutSignal(GalilRIOSignal): # We reuse the logic implemente
|
||||
|
||||
def _socket_get(self) -> float:
|
||||
"""Get command for the readback signal"""
|
||||
cmd = "MG@" + ",@".join([f"OUT[{ii}]" for ii in range(self._NUM_DIGITAL_OUTPUT_CHANNELS)])
|
||||
cmd = "MG@" + ", @".join([f"OUT[{ii}]" for ii in range(self._NUM_DIGITAL_OUTPUT_CHANNELS)])
|
||||
ret = self.controller.socket_put_and_receive(cmd)
|
||||
values = [float(val) for val in ret.strip().split(" ")]
|
||||
cmd = f"MG@OUT[{self._channel}]"
|
||||
|
||||
Reference in New Issue
Block a user