-
Notifications
You must be signed in to change notification settings - Fork 1
/
limadexela.mac
50 lines (36 loc) · 1.1 KB
/
limadexela.mac
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
#%NAME%
# Specific macros for Lima Dexela detector
#%CATEGORY% Detection, Ccd
#%LOG%
#
def limadexelasetup(ccdname) '{
# --- common control init
_limapar_controlinit(ccdname, 0)
# --- parameter definition
_limapar_addconfig(ccdname,"full_well_mode",LP_RW|LP_LIST,1)
# --- parameter description
_limapar_addtext(ccdname, "full_well_mode", "Full well mode")
}'
lima_addlimatype("Dexela", "limadexelasetup", "limadexelamenu")
def limadexelamenu(ccdname) '{
local items[] parname
local nl option
items["full_well_mode"] = "HIGH"
option= 1
while(option) {
for(parname in items) {
items[parname]= _limapar_get(ccdname, parname)
}
nl= _limamenu_printtitle(ccdname, "Configuration", "config")
tty_move(0, nl++, "(1) Configuration :")
_limamenu_printitem(ccdname, "full_well_mode", items["full_well_mode"], nl++,11)
option= getval("\n\n\tOption ---> ", 0)
printf("\n\n")
if((option == 1) || (option==11))
_limapar_ask(ccdname, "full_well_mode",items["full_well_mode"])
}
}'
#%MACROS%
#%IMACROS%
#%TOC%
#%AUTHOR% S.Petitdemange