UnlockFIU

Bases: KPFFunction

Unlock the FIU mechanisms

KTL Keywords Used:

  • kpffiu.ADC1LCK
  • kpffiu.ADC2LCK
  • kpffiu.FOLDLCK
  • kpffiu.HKXLCK
  • kpffiu.HKYLCK
  • kpffiu.TTXLCK
  • kpffiu.TTYLCK
Source code in kpf/fiu/UnlockFIU.py
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
class UnlockFIU(KPFFunction):
    '''Unlock the FIU mechanisms

    KTL Keywords Used:

    - `kpffiu.ADC1LCK`
    - `kpffiu.ADC2LCK`
    - `kpffiu.FOLDLCK`
    - `kpffiu.HKXLCK`
    - `kpffiu.HKYLCK`
    - `kpffiu.TTXLCK`
    - `kpffiu.TTYLCK`
    '''
    @classmethod
    def pre_condition(cls, args):
        pass

    @classmethod
    def perform(cls, args):
        kpffiu = ktl.cache('kpffiu')
        kpffiu['adc1lck'].write('')
        kpffiu['adc2lck'].write('')
        kpffiu['foldlck'].write('')
        kpffiu['hkxlck'].write('')
        kpffiu['hkylck'].write('')
        kpffiu['ttxlck'].write('')
        kpffiu['ttylck'].write('')

    @classmethod
    def post_condition(cls, args):
        pass