Exemplo n.º 1
0
    def __init__(self, ctrl_var):

        self.ctrl_var = ctrl_var

        error_code = -300

        msg = "ERROR %d: fcstrack shut down." \
              % (error_code, file, dir)
        error_message = msg

        fcs_auxiliary.fcsState(self.ctrl_var).interrupt(
            error_code, error_message)
Exemplo n.º 2
0
    def __init__(self, ctrl_var):

        self.ctrl_var = ctrl_var

        error_code = -22

        msg = "ERROR %d: Cannot read FCS output directory from deifcs service, retrying." % (
            error_code)

        error_message = msg

        self.ctrl_var = fcs_auxiliary.fcsState(self.ctrl_var).emergency(
            error_code, error_message)

        return self.ctrl_var
Exemplo n.º 3
0
    def __init__(self, ctrl_var):

        self.ctrl_var = ctrl_var

        error_code = -21

        msg = "ERROR %d: Cannot read grating name, position, tilt wavelenghts or filter name." % (
            error_code)

        error_message = msg

        self.ctrl_var = fcs_auxiliary.fcsState(self.ctrl_var).emergency(
            error_code, error_message)

        return self.ctrl_var
Exemplo n.º 4
0
    def __init__(self, pos, ctrl_var):

        self.pos = pos
        self.ctrl_var = ctrl_var

        error_code = -53

        msg = "ERROR %d: Grating postion number %d is not valid for FCS." \
              % (error_code, pos)

        error_message = msg

        self.ctrl_val = fcs_auxiliary.fcsState(self.ctrl_var).emergency(
            error_code, error_message)

        return self.ctrl_var
Exemplo n.º 5
0
    def __init__(self, grname, ctrl_var):

        self.grname = grname
        self.ctrl_val = ctrl_val

        error_code = -52

        msg = "ERROR %d: Grating name %s is not valid for FCS." \
              % (error_code, self.grname)

        error_message = msg

        self.ctrl_val = fcs_auxiliary.fcsState(self.ctrl_var).lockout(
            error_code, error_message)

        return self.ctrl_var
Exemplo n.º 6
0
    def __init__(self, keyword):

        self.keyword = keyword
        self.ctrl_var = ctrl_var

        error_code = -33

        msg = "ERROR %d: Cannot read %s keyword from deirot service." \
              % (error_code, self.keyword)

        error_message = msg

        self.ctrl_var = fcs_auxiliary.fcsState(self.ctrl_var).emergency(
            error_code, error_message)

        return self.ctrl_var
Exemplo n.º 7
0
    def __init__(self, filename, ctrl_var):

        self.filename = filename
        self.ctrl_var = ctrl_var

        error_code = -32

        msg = "ERROR %d: Cannot create logfile %s." \
              % (error_code, self.filename)

        error_message = msg

        self.ctrl_var = fcs_auxiliary.fcsState(self.ctrl_var).warning(
            error_code, error_message)

        return self.ctrl_var
Exemplo n.º 8
0
    def __init__(self, name, ctrl_var):

        self.name = name
        self.ctrl_var = ctrl_var

        error_code = -24

        msg = "ERROR %d: Incomplete reference file '%s'." % (error_code,
                                                             self.name)

        error_message = msg

        self.ctrl_var = fcs_auxiliary.fcsState(ctrl_var).lockout(
            error_code, error_message)

        return self.ctrl_var
Exemplo n.º 9
0
    def __init__(self, ctrl_var):

        self.ctrl_var = ctrl_var

        error_code = -51

        msg = "ERROR %d: No slider is clampled down. Slider change in progress?" \
              % (error_code)

        error_message = msg

        # Number of reference gratings, sliders, wavelenghts,
        # filters and focus values found.

        fcsnogra = ktl.cache('deifcs', 'FCSNOGRA')
        fcsnosli = ktl.cache('deifcs', 'FCSNOSLI')
        fcsnowav = ktl.cache('deifcs', 'FCSNOWAV')
        fcsnofil = ktl.cache('deifcs', 'FCSNOFIL')
        fcsnofoc = ktl.cache('deifcs', 'FCSNOFOC')

        fcsnogra.write(0)
        fcsnosli.write(0)
        fcsnowav.write(0)
        fcsnofil.write(0)
        fcsnofoc.write(0)

        # Integral and adjusted additional correction calculated in experimental
        # predictive algorithm when tracking rotator velocity is near those
        # encountered through the keyhole.

        fcsintxm = ktl.cache('deifcs', 'FCSINTXM')
        fcsintym = ktl.cache('deifcs', 'FCSINTYM')
        fcsadjxm = ktl.cache('deifcs', 'FCSADJXM')
        fcsadjym = ktl.cache('deifcs', 'FCSADJYM')

        fcsintxm.write(0)
        fcsintym.write(0)
        fcsadjxm.write(0)
        fcsadjym.write(0)

        self.ctrl_var = fcs_auxiliary.fcsState(self.ctrl_var).lockout(
            error_code, error_message)

        return self.ctrl_var
Exemplo n.º 10
0
    def __init__(self, ctrl_var):

        self.ctrl_var = ctrl_var

        error_code = 52

        msg = "MSG %d: Filter change in progress?" \
              % (error_code)

        error_message = msg

        # Number of reference filters and focus values found.

        fcsnofil = ktl.cache('deifcs', 'FCSNOFIL')
        fcsnofoc = ktl.cache('deifcs', 'FCSNOFOC')

        fcsnofil.write(0)
        fcsnofoc.write(0)

        self.ctrl_var = fcs_auxiliary.fcsState(self.ctrl_var).lockout(
            error_code, error_message)

        return self.ctrl_var