1 | function Boostersetup |
---|
2 | %BoosterSETUP - GUI for doing Booster setup |
---|
3 | |
---|
4 | % |
---|
5 | % Written by Laurent S. Nadolski |
---|
6 | |
---|
7 | AD = getad; |
---|
8 | |
---|
9 | if isempty(AD) |
---|
10 | boosterinit; |
---|
11 | elseif ~strcmpi(AD.SubMachine,'Booster') |
---|
12 | Boosterinit; |
---|
13 | end |
---|
14 | |
---|
15 | orbfig = findobj(allchild(0),'tag','Boostersetup'); |
---|
16 | |
---|
17 | if ~isempty(orbfig), delete(orbfig); end |
---|
18 | orbfig = findobj(allchild(0),'tag','Boostersetup'); |
---|
19 | |
---|
20 | |
---|
21 | kmax = 8; % button number |
---|
22 | |
---|
23 | height = 10 + kmax*30 + 30; %670; |
---|
24 | a = figure('Color',[0.8 0.8 0.8], ... |
---|
25 | 'Interruptible', 'on', ... |
---|
26 | 'HandleVisibility','off', ... |
---|
27 | 'MenuBar','none', ... |
---|
28 | 'Name', 'Booster Command Launcher', ... |
---|
29 | 'NumberTitle','off', ... |
---|
30 | 'Units','pixels', ... |
---|
31 | 'Position',[5 70 210*3 height], ... |
---|
32 | 'Resize','off', ... |
---|
33 | 'Tag','Boostersetup'); |
---|
34 | |
---|
35 | height = height - 35; |
---|
36 | |
---|
37 | for k = 1:kmax, |
---|
38 | b1(k) = uicontrol('Parent',a, ... |
---|
39 | 'Position',[3 height-(k-1)*30 204 27], ... |
---|
40 | 'Interruptible', 'off', ... |
---|
41 | 'Tag','button22'); |
---|
42 | end |
---|
43 | |
---|
44 | for k = 1:kmax, |
---|
45 | b2(k) = uicontrol('Parent',a, ... |
---|
46 | 'Position',[3 + 210 height-(k-1)*30 204 27], ... |
---|
47 | 'Interruptible', 'off', ... |
---|
48 | 'Tag','button22'); |
---|
49 | end |
---|
50 | |
---|
51 | for k = 1:kmax, |
---|
52 | b3(k) = uicontrol('Parent',a, ... |
---|
53 | 'Position',[3 + 210*2 height-(k-1)*30 204 27], ... |
---|
54 | 'Interruptible', 'off', ... |
---|
55 | 'Tag','button22'); |
---|
56 | end |
---|
57 | |
---|
58 | set(b1(1), 'Callback','disp(['' Boosterinit;'']); cd(getenv(''MLROOT'')); setpathsoleil(''Booster'');', 'String','Boosterinit'); |
---|
59 | set(b1(2), 'Callback','disp(['' Fichiers de Consignes;'']); configgui;;', 'String','Fichiers de Consignes'); |
---|
60 | set(b1(3), 'Callback','disp(['' Timing;'']); synchro_injecteur8_rafale;', 'String','Synchronisation'); |
---|
61 | set(b1(4), 'Callback','save_boo', 'String','Fichier de consigne'); |
---|
62 | set(b1(5), 'Callback','NombreOnde_AL_DCCT', 'String','Nombres d'' onde'); |
---|
63 | set(b1(6), 'Callback','tune1', 'String','Réglage injection'); |
---|
64 | set(b1(7), 'Callback','tango_archiving_config', 'String','Archivage'); |
---|
65 | set(b1(8), 'Callback','qart_inject', 'String','injection par quart'); |
---|
66 | set(b2(1), 'Callback','bpmconfigurator;', 'String','Configuration BPM'); |
---|
67 | set(b2(2), 'Callback','disp(['' orbitX_AT;'']); orbitX_AT;', 'String','orbitX'); |
---|
68 | set(b2(3), 'Callback','disp(['' orbitZ_AT;'']); orbitZ_AT;', 'String','orbitZ'); |
---|
69 | set(b2(4), 'Callback','anabpmfirstturn([],''NoDisplay'');', 'String','Orbite premier tour'); |
---|
70 | set(b2(5), 'Callback','getbpmBN(''Injection'');', 'String','Orbite injection'); |
---|
71 | set(b2(6), 'Callback','getbpmBN(''Extraction'');', 'String','Orbite extraction'); |
---|
72 | set(b2(7), 'Callback','ACenergie1;', 'String','AC energie'); |
---|
73 | set(b2(8), 'Callback','ACtune;', 'String','AC tune'); |
---|
74 | |
---|
75 | set(b3(1), 'Callback','plotfamily', 'String','Plotfamily'); |
---|