source: MML/trunk/machine/SOLEIL/common/synchro/Synchronisationsetup.m @ 17

Last change on this file since 17 was 17, checked in by zhangj, 10 years ago

To have a stable version on the server.

  • Property svn:executable set to *
File size: 2.4 KB
Line 
1function Synchronisationsetup
2%LT2SETUP - GUI for doing LT2 setup
3
4%
5% Written by Laurent S. Nadolski
6
7
8
9orbfig = findobj(allchild(0),'tag','Timingsetup');
10
11if ~isempty(orbfig), delete(orbfig); end
12orbfig = findobj(allchild(0),'tag','Timingsetup');
13
14
15kmax = 8; % button number
16
17height = 10 + kmax*30 + 30; %670;
18a = figure('Color',[0.8 0.8 0.8], ...
19    'Interruptible', 'on', ...   
20    'HandleVisibility','off', ...
21    'MenuBar','none', ...
22    'Name', 'Timingsetup', ...
23    'NumberTitle','off', ...
24    'Units','pixels', ...
25    'Position',[5 70 210*2 height], ...
26    'Resize','off', ...Synchronisation
27    'Tag','Timingsetup');
28
29height = height - 35;
30
31for k = 1:kmax,
32    b1(k) = uicontrol('Parent',a, ...
33        'Position',[3 height-(k-1)*30 204 27], ...
34        'Interruptible', 'off', ...
35        'Tag','button22');
36end
37
38for k = 1:kmax,
39    b2(k) = uicontrol('Parent',a, ...
40        'Position',[3 + 210 height-(k-1)*30 204 27], ...
41        'Interruptible', 'off', ...
42        'Tag','button22');
43end
44
45set(b1(1), 'Callback','disp([''   Fichiers de Consignes;'']); save_boo;', 'String','Fichiers de Consignes');
46set(b1(2), 'Callback','disp([''   Survey;'']); synchro_survey;', 'String','Synchro_survey');
47set(b1(3), 'Callback','disp([''   Timing;'']); synchro_injecteur7;', 'String','Synchronisation');
48set(b1(4), 'Callback','disp([''   Timing_test;'']); synchro_mode_tests;', 'String','Synchro_mode_test');
49
50set(b1(6), 'Callback','disp([''   Timing;'']); synchro_injecteur7_rafale;', 'String','Synchronisation_rafale');
51set(b1(7), 'Callback','disp([''   Timing_test;'']); synchro_rafale_mode_tests;', 'String','Synchro_rafale_mode_test');
52
53
54set(b2(1), 'Callback','disp([''   Kickers ANS;'']); set_bump0;', 'String',' Set kickers bump symmetric');
55set(b2(2), 'Callback','disp([''   Kickers ANS;'']); set_bump_optim;', 'String',' Set kickers bump optim ');
56set(b2(3), 'Callback','disp([''   Kickers ANS;'']); kicker_scaling;', 'String',' Scale Bump ');
57
58
59
60
61b = uicontrol('Parent',a, ...
62    'Callback','close all', ...
63    'String','Close All Figures', ...
64    'Position',[3 height-kmax*30 204 27], ...
65    'Userdata',[], ...
66    'Interruptible', 'off', ...   
67    'Tag','button2');
68
69b = uicontrol('Parent',a, ...
70    'Callback','diary off; close(get(findobj(gcbf,''Tag'',''button1''),''Userdata''));', ...
71    'Position',[3 + 210 height-kmax*30 204 27], ...
72    'String','CLOSE', ...
73    'Userdata',a, ...
74    'Interruptible', 'off', ...   
75    'Tag','button1');
76
Note: See TracBrowser for help on using the repository browser.