0001 function Synchronisationsetup_op
0002
0003
0004
0005
0006
0007
0008
0009 orbfig = findobj(allchild(0),'tag','Timingsetup');
0010
0011 if ~isempty(orbfig), delete(orbfig); end
0012 orbfig = findobj(allchild(0),'tag','Timingsetup');
0013
0014
0015 kmax = 6;
0016
0017 height = 10 + kmax*30 + 30;
0018 a = figure('Color',[0.8 0.8 0.8], ...
0019 'Interruptible', 'on', ...
0020 'HandleVisibility','off', ...
0021 'MenuBar','none', ...
0022 'Name', 'Timingsetup', ...
0023 'NumberTitle','off', ...
0024 'Units','pixels', ...
0025 'Position',[5 70 210*2 height], ...
0026 'Resize','off', ...
0027 'Tag','Timingsetup');
0028
0029 height = height - 35;
0030
0031 for k = 1:kmax,
0032 b1(k) = uicontrol('Parent',a, ...
0033 'Position',[3 height-(k-1)*30 204 27], ...
0034 'Interruptible', 'off', ...
0035 'Tag','button22');
0036 end
0037
0038 for k = 1:kmax,
0039 b2(k) = uicontrol('Parent',a, ...
0040 'Position',[3 + 210 height-(k-1)*30 204 27], ...
0041 'Interruptible', 'off', ...
0042 'Tag','button22');
0043 end
0044
0045 set(b1(1), 'Callback','disp(['' Fichiers de Consignes;'']); save_boo;', 'String','Fichiers de Consignes');
0046 set(b1(2), 'Callback','disp(['' Survey;'']); synchro_survey;', 'String','Synchro_survey');
0047 set(b1(3), 'Callback','disp(['' Timing;'']); synchro_injecteur8_rafale;', 'String','Synchronisation');
0048 set(b1(4), 'Callback','disp(['' Timing_test;'']); synchro_rafale_mode_tests;', 'String','Synchro_mode_test');
0049
0050 set(b2(1), 'Callback','disp(['' Scale Kickers;'']); kicker_scaling;', 'String','ANS Kickers Scaling');
0051
0052
0053 b = uicontrol('Parent',a, ...
0054 'Callback','close all', ...
0055 'String','Close All Figures', ...
0056 'Position',[3 height-kmax*30 204 27], ...
0057 'Userdata',[], ...
0058 'Interruptible', 'off', ...
0059 'Tag','button2');
0060
0061 b = uicontrol('Parent',a, ...
0062 'Callback','diary off; close(get(findobj(gcbf,''Tag'',''button1''),''Userdata''));', ...
0063 'Position',[3 + 210 height-kmax*30 204 27], ...
0064 'String','CLOSE', ...
0065 'Userdata',a, ...
0066 'Interruptible', 'off', ...
0067 'Tag','button1');
0068