-
Notifications
You must be signed in to change notification settings - Fork 0
/
AGRECONF.sk
64 lines (44 loc) · 1.5 KB
/
AGRECONF.sk
1
2
3
4
5
6
7
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#**********************************************************************
#
# Reconfigure parameters of running AG sequence
# sending a command to AG actor
#
#**********************************************************************
:Header
SCRIPT_AUTHOR=Moritani, Yoshida, Koshida
SCRIPT_UPDATE=2021.11.10
OBE_ID=PFS
OBE_MODE=SPEC_ENG
:Parameter
EXPTIME=NOP
INTERVAL=NOP
:Command
:start
:main_start
EXEC OBS Set_Message Instrument_name=PFS obsinfo1="AG Reconfigure" obsinfo2=clear obsinfo3="Start" obsinfo4=clear obsinfo5=clear ;
*IF "$EXPTIME" != "NOP"
*Set EXPT_AG = $EXPTIME * 1000
EXEC OBS Set_Message Instrument_name=PFS obsinfo4="ExpTime: $EXPTIME" ;
*ENDIF
*IF "$INTERVAL" != "NOP"
*Set INT_AG = $INTERVAL * 1000
EXEC OBS Set_Message Instrument_name=PFS obsinfo5="Int.: $INTERVAL" ;
*ENDIF
#exec pfs pfscmd actor="ag" cmd="autoguide start"
*IF "$EXPTIME" != "NOP"
*IF "$INTERVAL" != "NOP"
exec pfs pfscmd actor="ag" cmd="autoguide reconfigure exposure_time=$EXPT_AG cadence=$INT_AG" ;
*ELSE
exec pfs pfscmd actor="ag" cmd="autoguide reconfigure exposure_time=$EXPT_AG" ;
*ENDIF
*ELSE
*IF "$INTERVAL" != "NOP"
exec pfs pfscmd actor="ag" cmd="autoguide reconfigure cadence=$INT_AG" ;
*ELSE
EXEC OBS Set_Message Instrument_name=PFS obsinfo4="Neither ExpT nor Int specified. " ;
*ENDIF
*ENDIF
EXEC OBS SOUND SELECT=COMMAND_COMPLETE Volume=64 ,
EXEC OBS Set_Message Instrument_name=PFS obsinfo3="Done. " ;
:main_end
:end