def main(self): self.susobj = sustools.Sus(ezca) # FIXME: this only identifies that the alignment offsets are # active, but does not distinguish ALIGNED from MISALIGNED, or # check for damping loops already engaged if self.susobj.masterSwitchRead(): if all(self.susobj.dampOutputSwitchRead()): if all(self.susobj.alignOffsetSwitchRead()): return 'ALIGNED' else: return 'DAMPED' else: log('Resetting DAMPED...') # make sure the alignment offsets aren't on ramp_align_offsets(self.susobj, 'OFF', susconst.rampTime) # FIXME: turn on the OLDAMP loops here since we don't # have a way to check if they're on already if olDamp_in_use(self.susobj): self.susobj.olDampOutputSwitchWrite('ON') self.timer['ramp'] = susconst.rampTime self.return_state = 'DAMPED' else: log('Resetting SAFE...') reset_safe(self.susobj, susconst.rampTime) self.timer['ramp'] = susconst.rampTime self.return_state = 'SAFE' log("next state: %s" % self.return_state)
def main(self): susobj = sustools.Sus(ezca) # we do this here so that you can re-request this state and # reset the alignements if they've changed if not is_aligned(susobj, alignment): set_alignment(susobj, alignment, susconst.rampTime)
def main(self): self.susobj = sustools.Sus(ezca) reset_safe(self.susobj, susconst.rampTime) # FIXME: use new ezca.is_ramping methods when available, # instead of using a timer log('Waiting %ds for ramps...' % susconst.rampTime) self.timer['ramp'] = susconst.rampTime
def main(self): susobj = sustools.Sus(ezca) ramp_align_offsets(susobj, 'OFF', susconst.rampTime) ramp_isc_gains(susobj, 0, susconst.rampTime) # FIXME: use new ezca.is_ramping methods when available, # instead of using a timer log('Waiting %ds for ramps...' % susconst.rampTime) self.timer['ramp'] = susconst.rampTime
def main(self): susobj = sustools.Sus(ezca) log('Turning on damping outputs') susobj.dampOutputSwitchWrite('ON') if olDamp_in_use(susobj): log('Turning on OL damping outputs') susobj.olDampOutputSwitchWrite('ON') return True
def main(self): self.susobj = sustools.Sus(ezca) # for reporting trip status is_tripped(self.susobj) reset_safe(self.susobj, susconst.rampTime) log('Waiting %ds for ramps...' % susconst.rampTime) self.timer['ramp'] = susconst.rampTime self.switch_off = False
def main(self): log('Turning On Master Switch') sustools.Sus(ezca).masterSwitchWrite('ON') return True
def main(self): self.susobj = sustools.Sus(ezca) self.ol_shut_off = False
def pre_exec(self): if not is_aligned(sustools.Sus(ezca), alignment): notify('Alignment not enabled or offsets have changed from those saved.')
def pre_exec(self): if is_tripped(sustools.Sus(ezca)): return 'TRIPPED'