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

L2SS-470: Fix interface of APSCT

parent 0ae07a1a
No related branches found
No related tags found
1 merge request!176L2SS-470: Fix boot
......@@ -76,11 +76,11 @@ class APSCT(opcua_device):
# Cycle clock
self.APSCT_off()
self.wait_attribute("APSCTTR_translator_busy_R", False, 10)
self.APSCT_on()
self.APSCT_200MHz_on()
self.wait_attribute("APSCTTR_translator_busy_R", False, 10)
if not self.proxy.APSCT_PLL_200MHz_locked_R:
if self.proxy.APSCT_I2C_error_R:
if self.proxy.APSCTTR_I2C_error_R:
raise Exception("I2C is not working. Maybe power cycle subrack to restart CLK board and translator?")
else:
raise Exception("200MHz signal is not locked. The subrack probably do not receive clock input or the CLK PCB is broken?")
......@@ -102,12 +102,22 @@ class APSCT(opcua_device):
@command()
@DebugIt()
@only_in_states([DevState.STANDBY, DevState.ON])
def APSCT_on(self):
def APSCT_200MHz_on(self):
"""
:return:None
"""
self.opcua_connection.call_method(["APSCT_on"])
self.opcua_connection.call_method(["APSCT_200MHz_on"])
@command()
@DebugIt()
@only_in_states([DevState.STANDBY, DevState.ON])
def APSCT_160MHz_on(self):
"""
:return:None
"""
self.opcua_connection.call_method(["APSCT_160MHz_on"])
# ----------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment