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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
7a039651
Commit
7a039651
authored
2 years ago
by
Stefano Di Frischia
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-827
: move RCUs initialise from recv to antennafield
parent
c8b7e854
No related branches found
No related tags found
1 merge request
!389
Resolve L2SS-827 "Implement antenna state"
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tangostationcontrol/tangostationcontrol/devices/antennafield.py
+21
-0
21 additions, 0 deletions
...tationcontrol/tangostationcontrol/devices/antennafield.py
tangostationcontrol/tangostationcontrol/devices/recv.py
+0
-9
0 additions, 9 deletions
tangostationcontrol/tangostationcontrol/devices/recv.py
with
21 additions
and
9 deletions
tangostationcontrol/tangostationcontrol/devices/antennafield.py
+
21
−
0
View file @
7a039651
...
@@ -369,6 +369,27 @@ class AntennaField(lofar_device):
...
@@ -369,6 +369,27 @@ class AntennaField(lofar_device):
self
.
__setup_all_receiver_proxies
()
self
.
__setup_all_receiver_proxies
()
self
.
__setup_mapper
()
self
.
__setup_mapper
()
@log_exceptions
()
def
_prepare_hardware
(
self
):
# Initialise the RCU hardware.
for
recv_proxy
in
self
.
recv_proxies
:
RCU_mask
=
recv_proxy
.
RCU_mask_RW
# Set the mask to all Trues
recv_proxy
.
RCU_mask_RW
=
[
True
]
*
32
# Turn off the RCUs
recv_proxy
.
RCU_off
()
# TODO(Stefano): restore wait attribute
#recv_proxy.wait_attribute("RECVTR_translator_busy_R", False, recv_proxy.RCU_On_Off_timeout)
# Restore the mask
recv_proxy
.
RCU_mask_RW
=
RCU_mask
# Turn on the RCUs
recv_proxy
.
RCU_on
()
# TODO(Stefano): restore wait attribute
#recv_proxy.wait_attribute("RECVTR_translator_busy_R", False, recv_proxy.RCU_On_Off_timeout)
@log_exceptions
()
@log_exceptions
()
def
_initialise_hardware
(
self
):
def
_initialise_hardware
(
self
):
# Disable controlling the tiles that fall outside the mask
# Disable controlling the tiles that fall outside the mask
...
...
This diff is collapsed.
Click to expand it.
tangostationcontrol/tangostationcontrol/devices/recv.py
+
0
−
9
View file @
7a039651
...
@@ -319,15 +319,6 @@ class RECV(opcua_device):
...
@@ -319,15 +319,6 @@ class RECV(opcua_device):
"""
"""
self
.
opcua_connection
.
call_method
([
"
RCU_DTH_on
"
])
self
.
opcua_connection
.
call_method
([
"
RCU_DTH_on
"
])
def
_initialise_hardware
(
self
):
"""
Initialise the RCU hardware.
"""
# Cycle RCUs
self
.
RCU_off
()
self
.
wait_attribute
(
"
RECVTR_translator_busy_R
"
,
False
,
self
.
RCU_On_Off_timeout
)
self
.
RCU_on
()
self
.
wait_attribute
(
"
RECVTR_translator_busy_R
"
,
False
,
self
.
RCU_On_Off_timeout
)
# ----------
# ----------
# Run server
# Run server
# ----------
# ----------
...
...
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