source: MML/trunk/machine/SOLEIL/Booster/boostersetup.m @ 4

Last change on this file since 4 was 4, checked in by zhangj, 11 years ago

Initial import--MML version from SOLEIL@2013

File size: 2.6 KB
Line 
1function Boostersetup
2%BoosterSETUP - GUI for doing Booster setup
3
4%
5% Written by Laurent S. Nadolski
6
7AD = getad;
8
9if isempty(AD)
10    boosterinit;
11elseif ~strcmpi(AD.SubMachine,'Booster')
12    Boosterinit;
13end
14
15orbfig = findobj(allchild(0),'tag','Boostersetup');
16
17if ~isempty(orbfig), delete(orbfig); end
18orbfig = findobj(allchild(0),'tag','Boostersetup');
19
20
21kmax = 8; % button number
22
23height = 10 + kmax*30 + 30; %670;
24a = 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
35height = height - 35;
36
37for k = 1:kmax,
38    b1(k) = uicontrol('Parent',a, ...
39        'Position',[3 height-(k-1)*30 204 27], ...
40        'Interruptible', 'off', ...
41        'Tag','button22');
42end
43
44for 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');
49end
50
51for 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');
56end
57
58set(b1(1), 'Callback','disp([''   Boosterinit;'']); cd(getenv(''MLROOT'')); setpathsoleil(''Booster'');', 'String','Boosterinit');
59set(b1(2), 'Callback','disp([''   Fichiers de Consignes;'']); configgui;;', 'String','Fichiers de Consignes');
60set(b1(3), 'Callback','disp([''   Timing;'']); synchro_injecteur8_rafale;', 'String','Synchronisation');
61set(b1(4), 'Callback','save_boo', 'String','Fichier de consigne');
62set(b1(5), 'Callback','NombreOnde_AL_DCCT', 'String','Nombres d'' onde');
63set(b1(6), 'Callback','tune1', 'String','Réglage injection');
64set(b1(7), 'Callback','tango_archiving_config', 'String','Archivage');
65set(b1(8), 'Callback','qart_inject', 'String','injection par quart');
66set(b2(1), 'Callback','bpmconfigurator;', 'String','Configuration BPM');
67set(b2(2), 'Callback','disp([''   orbitX_AT;'']); orbitX_AT;', 'String','orbitX');
68set(b2(3), 'Callback','disp([''   orbitZ_AT;'']); orbitZ_AT;', 'String','orbitZ');
69set(b2(4), 'Callback','anabpmfirstturn([],''NoDisplay'');', 'String','Orbite premier tour');
70set(b2(5), 'Callback','getbpmBN(''Injection'');', 'String','Orbite injection');
71set(b2(6), 'Callback','getbpmBN(''Extraction'');', 'String','Orbite extraction');
72set(b2(7), 'Callback','ACenergie1;', 'String','AC energie');
73set(b2(8), 'Callback','ACtune;', 'String','AC tune');
74
75set(b3(1), 'Callback','plotfamily', 'String','Plotfamily');
Note: See TracBrowser for help on using the repository browser.