source: MML/trunk/machine/SOLEIL/StorageRing/KEM/KEMgui.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.0 KB
Line 
1function KEMgui
2%KEMgui - GUI for KEM controling. Usefull for FAM
3
4%
5% Written by Laurent S. Nadolski
6
7%Clear previous ORBIT figure
8orbfig = findobj(allchild(0),'tag','kemgui');
9
10if ~isempty(orbfig), delete(orbfig); end
11
12kmax = 2; % button number
13
14height = 10 + kmax*30 + 30; %670;
15a = figure('Color',[0.8 0.8 0.8], ...
16    'Interruptible', 'on', ...   
17    'HandleVisibility','off', ...
18    'MenuBar','none', ...
19    'Name', 'KEM gui', ...
20    'NumberTitle','off', ...
21    'Units','pixels', ...
22    'Position',[5 70 210*4 height], ...
23    'Resize','off', ...
24    'Tag','kemgui');
25
26height = height - 35;
27
28for k = 1:kmax,
29    b1(k) = uicontrol('Parent',a, ...
30        'Position',[3 height-(k-1)*30 204 27], ...
31        'Interruptible', 'off', ...
32        'Tag','button22');
33end
34
35for k = 1:kmax,
36    b2(k) = uicontrol('Parent',a, ...
37        'Position',[3 + 210 height-(k-1)*30 204 27], ...
38        'Interruptible', 'off', ...
39        'Tag','button22');
40end
41
42for k = 1:kmax,
43    b3(k) = uicontrol('Parent',a, ...
44        'Position',[3 + 210*2 height-(k-1)*30 204 27], ...
45        'Interruptible', 'off', ...
46        'Tag','button22');
47end
48
49for k = 1:kmax,
50    b4(k) = uicontrol('Parent',a, ...
51        'Position',[3 + 210*3 height-(k-1)*30 204 27], ...
52        'Interruptible', 'off', ...
53        'Tag','button22');
54end
55
56bn = uicontrol('Parent',a, ...
57        'Position',[3+310 height-(kmax)*30+5 204 27/2], ...
58        'Interruptible', 'off', ...
59        'Style','text', 'String', 'Interface for turn by turn measurements', 'ForegroundColor', 'r');
60
61set(b1(1), 'Callback','switchsynchro(''Injection''); disp(''injection'');', 'String','Synchro : injection');
62set(b1(2), 'Callback','switchsynchro(''KEM''); disp(''KEM'');', 'String','Synchro KEM');
63
64set(b2(1), 'Callback','switchbpm(''Injection''); disp(''BPM: normal'')', 'String','BPM Normal');
65set(b2(2), 'Callback','switchbpm(''KEM''); disp(''BPM: KEM'') ', 'String','BPM: KEM');
66
67set(b3(1), 'Callback','soft_trigger; getdcct', 'String','Trigger Soft');
68set(b3(2), 'Callback','burst_trigger; getdcct', 'String','Injection');
69
Note: See TracBrowser for help on using the repository browser.