Skip to content
Snippets Groups Projects
Commit 7a039651 authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-827: move RCUs initialise from recv to antennafield

parent c8b7e854
No related branches found
No related tags found
1 merge request!389Resolve L2SS-827 "Implement antenna state"
...@@ -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
......
...@@ -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
# ---------- # ----------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment