Skip to content
Snippets Groups Projects
Commit 8baacd38 authored by Taya Snijder's avatar Taya Snijder
Browse files

Merge branch 'L2SS-974_ccd_alarm_fixes' into 'master'

L2SS-974 ccd alarm fixes

Closes L2SS-974

See merge request !430
parents b4eaba48 f6123e08
No related branches found
No related tags found
1 merge request!430L2SS-974 ccd alarm fixes
......@@ -118,7 +118,7 @@ class CCD(opcua_device):
def reset_hardware(self):
""" Initialise the CCD hardware. """
# Cycle clock
# Cycle clock. Quickly toggling the heater should not cool the heater down too much.
self.CCD_off()
self.wait_attribute("CCDTR_translator_busy_R", False, self.CCD_On_Off_timeout)
self.CCD_on()
......@@ -126,16 +126,20 @@ class CCD(opcua_device):
if not self.read_attribute("CCD_PLL_locked_R"):
if self.read_attribute("CCDTR_I2C_error_R"):
raise Exception("I2C is not working. Maybe power cycle subrack to restart CLK board and translator?")
raise Exception("I2C is not working.")
else:
raise Exception("CCD clock is not locked")
logger.warning("CCD not locked, this may indicate the clock has not yet warmed up")
def _disable_hardware(self):
""" Disable the CCD hardware. """
""" Disable the CCD hardware.
WARNING: The CCD contains a heater that takes about 15 minutes to fully heat up from a cold start.
This
"""
# Turn off the CCD
self.CCD_off()
self.wait_attribute("CCDTR_translator_busy_R", False, self.CCD_On_Off_timeout)
logger.debug("Put CCD in off state")
# --------
# Commands
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment