Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
5c06bbba
Commit
5c06bbba
authored
1 year ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
fix setting multiple destinations
parent
76c52ec5
No related branches found
Tags
v0.28.1-5
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py
+5
-1
5 additions, 1 deletion
...stationcontrol/tangostationcontrol/devices/sdp/beamlet.py
with
5 additions
and
1 deletion
tangostationcontrol/tangostationcontrol/devices/sdp/beamlet.py
+
5
−
1
View file @
5c06bbba
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment