From 5c06bbba505365be0341ae568fb36c1c7f4aef80 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Mon, 26 Feb 2024 11:58:16 +0100 Subject: [PATCH] fix setting multiple destinations --- .../tangostationcontrol/devices/sdp/beamlet.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py b/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py index 5f2fb24a6..3fb71a729 100644 --- a/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py +++ b/tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py @@ -34,6 +34,7 @@ from tangostationcontrol.common.constants import ( ) # Additional import +from tangostationcontrol.common.device_decorators import debugit from tangostationcontrol.common.lofar_logging import log_exceptions from tangostationcontrol.common.proxy import create_device_proxy from tangostationcontrol.common.sdp import phases_to_weights @@ -650,7 +651,9 @@ class Beamlet(OPCUADevice): "FPGA_beamlet_output_nof_destinations_RW_default_shorthand" ] - default_settings = [] + default_settings = [ + ("FPGA_beamlet_output_nof_destinations_RW", nof_destinations) + ] # Set MAC, IP, port for setting, value_if_undefined in [ @@ -680,6 +683,7 @@ class Beamlet(OPCUADevice): # report effective number of output destinations return self.read_attribute("FPGA_beamlet_output_nof_destinations_act_R") + @debugit() def write_FPGA_beamlet_output_nof_destinations_RW(self, value): old_FPGA_processing_enable = self.sdp_proxy.FPGA_processing_enable_RW try: -- GitLab