Skip to content
Snippets Groups Projects
Commit 5c06bbba authored by Jan David Mol's avatar Jan David Mol
Browse files

fix setting multiple destinations

parent 76c52ec5
No related branches found
Tags v0.28.1-5
No related merge requests found
...@@ -34,6 +34,7 @@ from tangostationcontrol.common.constants import ( ...@@ -34,6 +34,7 @@ from tangostationcontrol.common.constants import (
) )
# Additional import # Additional import
from tangostationcontrol.common.device_decorators import debugit
from tangostationcontrol.common.lofar_logging import log_exceptions from tangostationcontrol.common.lofar_logging import log_exceptions
from tangostationcontrol.common.proxy import create_device_proxy from tangostationcontrol.common.proxy import create_device_proxy
from tangostationcontrol.common.sdp import phases_to_weights from tangostationcontrol.common.sdp import phases_to_weights
...@@ -650,7 +651,9 @@ class Beamlet(OPCUADevice): ...@@ -650,7 +651,9 @@ class Beamlet(OPCUADevice):
"FPGA_beamlet_output_nof_destinations_RW_default_shorthand" "FPGA_beamlet_output_nof_destinations_RW_default_shorthand"
] ]
default_settings = [] default_settings = [
("FPGA_beamlet_output_nof_destinations_RW", nof_destinations)
]
# Set MAC, IP, port # Set MAC, IP, port
for setting, value_if_undefined in [ for setting, value_if_undefined in [
...@@ -680,6 +683,7 @@ class Beamlet(OPCUADevice): ...@@ -680,6 +683,7 @@ class Beamlet(OPCUADevice):
# report effective number of output destinations # report effective number of output destinations
return self.read_attribute("FPGA_beamlet_output_nof_destinations_act_R") return self.read_attribute("FPGA_beamlet_output_nof_destinations_act_R")
@debugit()
def write_FPGA_beamlet_output_nof_destinations_RW(self, value): def write_FPGA_beamlet_output_nof_destinations_RW(self, value):
old_FPGA_processing_enable = self.sdp_proxy.FPGA_processing_enable_RW old_FPGA_processing_enable = self.sdp_proxy.FPGA_processing_enable_RW
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment