REGLAGE_POS_ENERGIE_V3 M-file for reglage_pos_energie_v3.fig REGLAGE_POS_ENERGIE_V3, by itself, creates a new REGLAGE_POS_ENERGIE_V3 or raises the existing singleton*. H = REGLAGE_POS_ENERGIE_V3 returns the handle to a new REGLAGE_POS_ENERGIE_V3 or the handle to the existing singleton*. REGLAGE_POS_ENERGIE_V3('CALLBACK',hObject,eventData,handles,...) calls the local function named CALLBACK in REGLAGE_POS_ENERGIE_V3.M with the given input arguments. REGLAGE_POS_ENERGIE_V3('Property','Value',...) creates a new REGLAGE_POS_ENERGIE_V3 or raises the existing singleton*. Starting from the left, property value pairs are applied to the GUI before reglage_pos_energie_v3_OpeningFunction gets called. An unrecognized property name or invalid value makes property application stop. All inputs are passed to reglage_pos_energie_v3_OpeningFcn via varargin. *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one instance to run (singleton)". See also: GUIDE, GUIDATA, GUIHANDLES
0001 function varargout = reglage_pos_energie_v3(varargin) 0002 % REGLAGE_POS_ENERGIE_V3 M-file for reglage_pos_energie_v3.fig 0003 % REGLAGE_POS_ENERGIE_V3, by itself, creates a new REGLAGE_POS_ENERGIE_V3 or raises the existing 0004 % singleton*. 0005 % 0006 % H = REGLAGE_POS_ENERGIE_V3 returns the handle to a new REGLAGE_POS_ENERGIE_V3 or the handle to 0007 % the existing singleton*. 0008 % 0009 % REGLAGE_POS_ENERGIE_V3('CALLBACK',hObject,eventData,handles,...) calls the local 0010 % function named CALLBACK in REGLAGE_POS_ENERGIE_V3.M with the given input arguments. 0011 % 0012 % REGLAGE_POS_ENERGIE_V3('Property','Value',...) creates a new REGLAGE_POS_ENERGIE_V3 or raises the 0013 % existing singleton*. Starting from the left, property value pairs are 0014 % applied to the GUI before reglage_pos_energie_v3_OpeningFunction gets called. An 0015 % unrecognized property name or invalid value makes property application 0016 % stop. All inputs are passed to reglage_pos_energie_v3_OpeningFcn via varargin. 0017 % 0018 % *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one 0019 % instance to run (singleton)". 0020 % 0021 % See also: GUIDE, GUIDATA, GUIHANDLES 0022 0023 % Edit the above text to modify the response to help reglage_pos_energie_v3 0024 0025 % Last Modified by GUIDE v2.5 27-Mar-2006 11:16:06 0026 0027 % Begin initialization code - DO NOT EDIT 0028 gui_Singleton = 1; 0029 gui_State = struct('gui_Name', mfilename, ... 0030 'gui_Singleton', gui_Singleton, ... 0031 'gui_OpeningFcn', @reglage_pos_energie_v3_OpeningFcn, ... 0032 'gui_OutputFcn', @reglage_pos_energie_v3_OutputFcn, ... 0033 'gui_LayoutFcn', [] , ... 0034 'gui_Callback', []); 0035 if nargin && ischar(varargin{1}) 0036 gui_State.gui_Callback = str2func(varargin{1}); 0037 end 0038 0039 if nargout 0040 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:}); 0041 else 0042 gui_mainfcn(gui_State, varargin{:}); 0043 end 0044 % End initialization code - DO NOT EDIT 0045 0046 % --- Executes just before reglage_pos_energie_v3 is made visible. 0047 function reglage_pos_energie_v3_OpeningFcn(hObject, eventdata, handles, varargin) 0048 % This function has no output args, see OutputFcn. 0049 % hObject handle to figure 0050 % eventdata reserved - to be defined in a future version of MATLAB 0051 % handles structure with handles and user data (see GUIDATA) 0052 % varargin command line arguments to reglage_pos_energie_v3 (see VARARGIN) 0053 0054 % Choose default command line output for reglage_pos_energie_v3 0055 handles.output = hObject; 0056 0057 0058 % position du septum passif 0059 handles.pos_septum = -15; 0060 0061 % efficit� des kickers exprim�e en mrad / mm de bump 0062 handles.eff_K = 0.3331; 0063 0064 % button group for kickers 0065 h = uibuttongroup('visible','off','Position',[0.05 0.84 .41 .12],... 0066 'Title','bump mode','TitlePosition','centertop',... 0067 'BackgroundColor',[0.696 1.0 0.924]); 0068 u1 = uicontrol('Style','Radio','String','bump symetrique','Tag','radiobutton1',... 0069 'pos',[10 55 140 25],'parent',h,'HandleVisibility','off',... 0070 'BackgroundColor',[0.696 1.0 0.924]); 0071 u2 = uicontrol('Style','Radio','String','bum dissymetrique couple 2 a 2','Tag','radiobutton2',... 0072 'pos',[10. 30. 220 25],'parent',h,'HandleVisibility','off',... 0073 'BackgroundColor',[0.696 1.0 0.924]); 0074 u3 = uicontrol('Style','Radio','String','bump quelconque','Tag','radiobutton3',... 0075 'pos',[10. 5.00 140 25],'parent',h,'HandleVisibility','off',... 0076 'BackgroundColor',[0.696 1.0 0.924]); 0077 0078 set(h,'SelectionChangeFcn',... 0079 {@uibuttongroup_SelectionChangeFcn,handles}); 0080 0081 set(h,'SelectedObject',u1); % No selection 0082 set(h,'Visible','on'); 0083 0084 set([handles.K1_edit1,handles.K1_slider1,... 0085 handles.K2_edit2,handles.K2_slider2,... 0086 handles.K3_edit3,handles.K3_slider3,... 0087 handles.K4_edit4,handles.K4_slider4,... 0088 handles.K1_U_edit,handles.K1_U_slider,... 0089 handles.K2_U_edit,handles.K2_U_slider,... 0090 handles.K3_U_edit,handles.K3_U_slider,... 0091 handles.K4_U_edit,handles.K4_U_slider,... 0092 ],'Enable','off') 0093 0094 %%%%%%% 0095 % BPM 0096 %%%%%%% 0097 0098 BPMxFamily = 'BPMx'; 0099 BPMzFamily = 'BPMz'; 0100 % on limite la liste des BPM au dixième 0101 % on tiend compte d'éventuels BPM au status = 0 0102 0103 nbmaxBPM = 10; 0104 BPMxList = family2dev(BPMxFamily, 1 ); 0105 BPMxListtotal = family2dev(BPMxFamily, 0 ); 0106 BPMxList = intersect(BPMxList(1:nbmaxBPM,:),BPMxListtotal(1:nbmaxBPM,:),'rows'); 0107 0108 BPMzList = family2dev(BPMzFamily, 1 ); 0109 BPMzListtotal = family2dev(BPMzFamily, 0 ); 0110 BPMzList = intersect(BPMzList(1:nbmaxBPM,:),BPMzListtotal(1:nbmaxBPM,:),'rows'); 0111 0112 % les éventuels BPMs au status = 0 sont inactivés et checkbox value = 0 0113 val_status = 1 - getfamilydata('BPMx','Status',BPMxListtotal(1:nbmaxBPM,:)); 0114 num_BPM_actif = []; 0115 for k = 1:nbmaxBPM 0116 name = strcat('BPM',num2str(k),'_checkbox'); 0117 if val_status(k) 0118 set(handles.(name),'Enable','off'); 0119 set(handles.(name),'Value',0); 0120 val = 0; 0121 else 0122 set(handles.(name),'Value',1); 0123 val = 1; 0124 end 0125 num_BPM_actif =[num_BPM_actif val]; 0126 end 0127 setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 0128 setappdata(handles.figure1,'BPMxList',BPMxList); 0129 0130 0131 % initialisation des BPM estim�s actifs pour la mesrue d'�nergie 0132 % fonction num_BPM_actif = 1 lorsque le BPM est selectionn�, 0 sinon 0133 % on active par d�faut les 5 premiers 0134 % num_BPM_actif = [1 1 1 1 1 0 0 0 0 0 ]; 0135 % setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 0136 % 0137 % set(handles.BPM1_checkbox,'Value',1); 0138 % set(handles.BPM2_checkbox,'Value',1); 0139 % set(handles.BPM3_checkbox,'Value',1); 0140 % set(handles.BPM4_checkbox,'Value',1); 0141 % set(handles.BPM5_checkbox,'Value',1); 0142 % set(handles.BPM6_checkbox,'Value',0); 0143 % set(handles.BPM7_checkbox,'Value',0); 0144 % set(handles.BPM8_checkbox,'Value',0); 0145 % set(handles.BPM9_checkbox,'Value',0); 0146 % set(handles.BPM10_checkbox,'Value',0); 0147 0148 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0149 % enregistrement de la matrice : 0150 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0151 0152 enregistrement = 1; 0153 if enregistrement 0154 0155 global THERING 0156 0157 % mise � z�ro des courants quadrup�les 0158 % setsp({'Q1','Q2','Q3',... 0159 % 'Q4','Q5','Q6','Q7','Q8','Q9','Q10'},0,'Model'); 0160 0161 tmp = family2atindex(findmemberof('QUAD')); 0162 for k1= 1: length(tmp) 0163 for k2=1:length(tmp{k1}) 0164 ATIndex= tmp{k1}(k2); 0165 THERING{ATIndex}.K = 0; 0166 THERING{ATIndex}.PolynomB(2) = 0; 0167 end 0168 end 0169 0170 % index des BPM 0171 index_BPM = family2atindex('BPMx'); 0172 %index_premier_element = family2atindex('K4'); 0173 index_premier_element = family2atindex('PtINJ'); 0174 0175 % calcul de chaque matrice 6x6 du point Kicker 4 jusqu'au BPM consid�r� 0176 for jBPM = 1:nbmaxBPM 0177 M66 = eye(6); 0178 for i = index_premier_element:index_BPM(jBPM) 0179 elem = THERING{i}; 0180 Melem66 = findelemm66(elem,elem.PassMethod,[0 0 0 0 0 0]'); 0181 M66 = Melem66 * M66; 0182 end 0183 R11(jBPM) = M66(1,1); 0184 R12(jBPM) = M66(1,2); 0185 R15(jBPM) = M66(1,5); 0186 end 0187 setappdata(handles.figure1,'R11',R11); 0188 setappdata(handles.figure1,'R12',R12); 0189 setappdata(handles.figure1,'R15',R15); 0190 0191 0192 end 0193 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0194 0195 % position des BPM acitvés 0196 s = getspos(BPMxFamily, BPMxList); 0197 Xmax = max(s); 0198 setappdata(handles.figure1, 'SPosX', s); 0199 L = getfamilydata('Circumference'); 0200 if isempty(L) 0201 setappdata(handles.figure1, 'AxisRange1X', [min(s) max(s)]); 0202 else 0203 setappdata(handles.figure1, 'AxisRange1X', [0 Xmax]); 0204 end 0205 setappdata(handles.figure1,'nbmaxBPM',nbmaxBPM); 0206 0207 % Update handles structure 0208 guidata(hObject, handles); 0209 0210 % This sets up the initial plot - only do when we are invisible 0211 % so window can get raised using reglage_pos_energie_v3. 0212 if strcmp(get(hObject,'Visible'),'off') 0213 0214 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0215 % AXE 1 0216 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0217 0218 % lire les valeurs courantes des kickers 0219 % val_HW14 = getam('K_INJ1'); 0220 % val_HW23 = getam('K_INJ2'); 0221 % val_ph14 = hw2physics('K_INJ1','Setpoint',val_HW14); 0222 % val_ph23 = hw2physics('K_INJ3','Setpoint',val_HW23); 0223 % teta1 = val_ph14(1); 0224 % teta2 = val_ph23(1); 0225 % teta3 = val_ph23(2); 0226 % teta4 = val_ph14(2); 0227 0228 %(on se teste sur correcteurs) 0229 % teta1 = -4e-3;teta2 = 4.5e-3;teta3 = 8e-3;teta4 = -8e-3 0230 val_HW = getam('HCOR'); 0231 val_ph = 100 * hw2physics('HCOR','Setpoint',val_HW); 0232 teta1 = - abs(val_ph(1)); 0233 teta2 = abs(val_ph(2)); 0234 teta3 = abs(val_ph(3)); 0235 teta4 = - abs(val_ph(4)); 0236 0237 % plot du bump kicker 0238 name=['axes' num2str(1)]; 0239 axes(handles.(name)); 0240 0241 % pas génial, il vaudrait mieux utiliser THERING en reperant les elements et 0242 % deduire les espaces entre equipements 0243 X1 = 0;X2 = 1;X3 = 4.002;X4 = 8.227;X5 = 11.229;X6 = 13; 0244 Ymax = 20;Ymin = -25; 0245 Xdata = [ X1 X2 X3 X4 X5 X6]; 0246 V1 = [0 0]'; 0247 V2 = [1 (X2-X1);0 1]*V1 + [0 teta1]'; 0248 V3 = [1 (X3-X2);0 1]*V2 + [0 teta2]'; 0249 V4 = [1 (X4-X3);0 1]*V3 + [0 teta3]'; 0250 V5 = [1 (X5-X4);0 1]*V4 + [0 teta4]'; 0251 V6 = [1 (X6-X5);0 1]*V5; 0252 Ydata = [V1(1) V2(1) V3(1) V4(1) V5(1) V6(1)]*1000; 0253 plot(Xdata,Ydata,'rs-','Tag','line1'); 0254 hold on 0255 plot(Xdata,Ydata*cos(30*pi/180),'bs-','Tag','line2'); 0256 set(handles.(name), 'YGrid','On'); 0257 set(handles.(name), 'XGrid','On'); 0258 set(gca, 'YMinorTick','On'); 0259 %set(handles.(name), 'XMinorTick','On'); 0260 xlabel(handles.(name),'s (m)'); 0261 ylabel(handles.(name),'X (mm)'); 0262 xlim([0 X6]); 0263 ylim([Ymin Ymax]); 0264 0265 % plot du septum 0266 hold on 0267 Xs = 6.8695;ls = 0.6; 0268 Ys = handles.pos_septum;eps = 3.5; 0269 rectangle('Position',[Xs,Ys-eps,ls,eps],... 0270 'FaceColor','r') 0271 %'Curvature',[0.4],'FaceColor','r') 0272 hold on 0273 0274 % plot des kickers 0275 l = 0.6;XK1 = X2-l/2;XK2 = X3-l/2; 0276 XK3 = X4-l/2;XK4 = X5-l/2; 0277 Y = Ymin + 1;ep = Ymax - Ymin - 2; 0278 rectangle('Position',[XK1,Y,l,ep],... 0279 'LineWidth',0.5,'LineStyle','--') 0280 hold on 0281 rectangle('Position',[XK2,Y,l,ep],... 0282 'LineWidth',0.5,'LineStyle','--') 0283 hold on 0284 rectangle('Position',[XK3,Y,l,ep],... 0285 'LineWidth',0.5,'LineStyle','--') 0286 hold on 0287 rectangle('Position',[XK4,Y,l,ep],... 0288 'LineWidth',0.5,'LineStyle','--') 0289 hold on 0290 0291 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0292 % plot de la maille 0293 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0294 0295 name=['axes' num2str(3)]; 0296 axes(handles.(name)); 0297 drawlattice; 0298 a = getappdata(gcf, 'AxisRange1X'); 0299 axis([a -1 1]); 0300 set(gca,'XTick',[-10 600]); % to erase tick labels 0301 set(gca,'YTick',[-10 10]); 0302 set(gca,'Box','off') 0303 0304 0305 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0306 % AXE 2 0307 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0308 0309 % entrer lecture BPM tour par tour :selectionner le premier tour 0310 % test anneau 0311 %BPMxList = [1 3;1 4;1 5;1 6] 0312 [X Z Sum] = anabpmfirstturn( BPMxList ,'MaxSum','NoDisplay'); 0313 orbite_x = X'; 0314 orbite_z = Z'; 0315 setappdata(handles.figure1,'orbite_x',orbite_x); 0316 setappdata(handles.figure1,'orbite_z',orbite_z); 0317 0318 % plot des orbites premiers tours 0319 name=['axes' num2str(2)]; 0320 axes(handles.(name)); 0321 %xdata = BPMx.Position; 0322 plot(s,orbite_x,'r-','Tag','line1'); 0323 hold on 0324 %ydata = BPMz.Position; 0325 axis([a -10 10]); 0326 plot(s,orbite_z,'b-','Tag','line2'); 0327 set(handles.(name), 'Nextplot','Add'); 0328 set(handles.(name), 'YGrid','On'); 0329 set(gca, 'YMinorTick','On'); 0330 set(handles.(name), 'XMinorTick','On'); 0331 xlabel(handles.(name),'position du BPM'); 0332 ylabel(handles.(name),'orbites (mm)'); 0333 0334 end 0335 % afficher la position du septum 0336 set(handles.pos_septum_text48,'String',num2str(handles.pos_septum)); 0337 0338 % UIWAIT makes reglage_pos_energie_v3 wait for user response (see UIRESUME) 0339 % uiwait(handles.figure1); 0340 0341 0342 % --- Outputs from this function are returned to the command line. 0343 function varargout = reglage_pos_energie_v3_OutputFcn(hObject, eventdata, handles) 0344 % varargout cell array for returning output args (see VARARGOUT); 0345 % hObject handle to figure 0346 % eventdata reserved - to be defined in a future version of MATLAB 0347 % handles structure with handles and user data (see GUIDATA) 0348 0349 % Get default command line output from handles structure 0350 varargout{1} = handles.output; 0351 0352 % --- Executes on button press in fit_pushbutton1. 0353 function fit_pushbutton1_Callback(hObject, eventdata, handles) 0354 % hObject handle to fit_pushbutton1 (see GCBO) 0355 % eventdata reserved - to be defined in a future version of MATLAB 0356 % handles structure with handles and user data (see GUIDATA) 0357 0358 num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 0359 % constitution de la liste des BPM actifs 0360 liste_BPM_actif = []; 0361 for i = 1: length(num_BPM_actif) 0362 if num_BPM_actif(i) 0363 liste_BPM_actif = [liste_BPM_actif i]; 0364 end 0365 end 0366 0367 % constitution de la matrice de transport avec les BPM actifs 0368 R11 = getappdata(handles.figure1,'R11'); 0369 R12 = getappdata(handles.figure1,'R12'); 0370 R15 = getappdata(handles.figure1,'R15'); 0371 orbite_x = getappdata(handles.figure1,'orbite_x'); 0372 0373 M11 = [];M12 = [];M15 = []; 0374 for i = 1:length(liste_BPM_actif) 0375 M11 = [M11 R11(liste_BPM_actif(i))]; 0376 M12 = [M12 R12(liste_BPM_actif(i))]; 0377 M15 = [M15 R15(liste_BPM_actif(i))]; 0378 end 0379 Matrice_BPM_actif = [M11' M12' M15'] 0380 disp('j''suis contente - pour l''instant') 0381 0382 % lire les N premiers BPM premiers tours 0383 %test 0384 %XBPM = [1 2 3 4 5 6 7 8 9 10]'; 0385 %XBPM = [5.59 6.96 10.86 12.13 13.40]'; 0386 [U,S,V] = svd(Matrice_BPM_actif) 0387 % ici toutes les valeurs propres sont utilisees- ?? 0388 diago = diag(S); 0389 seuil = 0.01; 0390 for k = 1:length(diag(S)) 0391 if diago(k)<seuil 0392 % on suppose que le premier est toujours superieur au seuil 0393 jseuil = k-1 0394 break 0395 else 0396 jseuil = length(diag(S)); 0397 end 0398 end 0399 Rmod = Matrice_BPM_actif * V(:,1:jseuil); 0400 B = Rmod \ orbite_x; 0401 Xpos = V(:,1:jseuil)*B 0402 0403 % afficher Xpos 0404 set(handles.deltax_text50,'String',sprintf('%3.2f',Xpos(1))); 0405 set(handles.deltaxp_text51,'String',sprintf('%3.2f',Xpos(2))); 0406 set(handles.deltaE_text52,'String',sprintf('%3.2f',Xpos(3)/10)); 0407 0408 % -------------------------------------------------------------------- 0409 function FileMenu_Callback(hObject, eventdata, handles) 0410 % hObject handle to FileMenu (see GCBO) 0411 % eventdata reserved - to be defined in a future version of MATLAB 0412 % handles structure with handles and user data (see GUIDATA) 0413 0414 0415 % -------------------------------------------------------------------- 0416 function OpenMenuItem_Callback(hObject, eventdata, handles) 0417 % hObject handle to OpenMenuItem (see GCBO) 0418 % eventdata reserved - to be defined in a future version of MATLAB 0419 % handles structure with handles and user data (see GUIDATA) 0420 file = uigetfile('*.fig'); 0421 if ~isequal(file, 0) 0422 open(file); 0423 end 0424 0425 % -------------------------------------------------------------------- 0426 function PrintMenuItem_Callback(hObject, eventdata, handles) 0427 % hObject handle to PrintMenuItem (see GCBO) 0428 % eventdata reserved - to be defined in a future version of MATLAB 0429 % handles structure with handles and user data (see GUIDATA) 0430 printdlg(handles.figure1) 0431 0432 % -------------------------------------------------------------------- 0433 function CloseMenuItem_Callback(hObject, eventdata, handles) 0434 % hObject handle to CloseMenuItem (see GCBO) 0435 % eventdata reserved - to be defined in a future version of MATLAB 0436 % handles structure with handles and user data (see GUIDATA) 0437 selection = questdlg(['Close ' get(handles.figure1,'Name') '?'],... 0438 ['Close ' get(handles.figure1,'Name') '...'],... 0439 'Yes','No','Yes'); 0440 if strcmp(selection,'No') 0441 return; 0442 end 0443 0444 delete(handles.figure1) 0445 0446 0447 % --- Executes on selection change in popupmenu1. 0448 function popupmenu1_Callback(hObject, eventdata, handles) 0449 % hObject handle to popupmenu1 (see GCBO) 0450 % eventdata reserved - to be defined in a future version of MATLAB 0451 % handles structure with handles and user data (see GUIDATA) 0452 0453 % Hints: contents = get(hObject,'String') returns popupmenu1 contents as cell array 0454 % contents{get(hObject,'Value')} returns selected item from popupmenu1 0455 0456 0457 % --- Executes during object creation, after setting all properties. 0458 function popupmenu1_CreateFcn(hObject, eventdata, handles) 0459 % hObject handle to popupmenu1 (see GCBO) 0460 % eventdata reserved - to be defined in a future version of MATLAB 0461 % handles empty - handles not created until after all CreateFcns called 0462 0463 % Hint: popupmenu controls usually have a white background on Windows. 0464 % See ISPC and COMPUTER. 0465 if ispc 0466 set(hObject,'BackgroundColor','white'); 0467 else 0468 set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor')); 0469 end 0470 0471 set(hObject, 'String', {'plot(rand(5))', 'plot(sin(1:0.01:25))', 'bar(1:.5:10)', 'plot(membrane)', 'surf(peaks)'}); 0472 0473 0474 0475 function K1_edit1_Callback(hObject, eventdata, handles) 0476 % hObject handle to K1_edit1 (see GCBO) 0477 % eventdata reserved - to be defined in a future version of MATLAB 0478 % handles structure with handles and user data (see GUIDATA) 0479 0480 % Hints: get(hObject,'String') returns contents of K1_edit1 as text 0481 % str2double(get(hObject,'String')) returns contents of K1_edit1 as a double 0482 0483 0484 % --- Executes during object creation, after setting all properties. 0485 function K1_edit1_CreateFcn(hObject, eventdata, handles) 0486 % hObject handle to K1_edit1 (see GCBO) 0487 % eventdata reserved - to be defined in a future version of MATLAB 0488 % handles empty - handles not created until after all CreateFcns called 0489 0490 % Hint: edit controls usually have a white background on Windows. 0491 % See ISPC and COMPUTER. 0492 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0493 set(hObject,'BackgroundColor','white'); 0494 end 0495 0496 0497 % --- Executes on slider movement. 0498 function K1_slider1_Callback(hObject, eventdata, handles) 0499 % hObject handle to K1_slider1 (see GCBO) 0500 % eventdata reserved - to be defined in a future version of MATLAB 0501 % handles structure with handles and user data (see GUIDATA) 0502 0503 % Hints: get(hObject,'Value') returns position of slider 0504 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 0505 0506 0507 % --- Executes during object creation, after setting all properties. 0508 function K1_slider1_CreateFcn(hObject, eventdata, handles) 0509 % hObject handle to K1_slider1 (see GCBO) 0510 % eventdata reserved - to be defined in a future version of MATLAB 0511 % handles empty - handles not created until after all CreateFcns called 0512 0513 % Hint: slider controls usually have a light gray background. 0514 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0515 set(hObject,'BackgroundColor',[.9 .9 .9]); 0516 end 0517 0518 0519 0520 function K2_edit2_Callback(hObject, eventdata, handles) 0521 % hObject handle to K2_edit2 (see GCBO) 0522 % eventdata reserved - to be defined in a future version of MATLAB 0523 % handles structure with handles and user data (see GUIDATA) 0524 0525 % Hints: get(hObject,'String') returns contents of K2_edit2 as text 0526 % str2double(get(hObject,'String')) returns contents of K2_edit2 as a double 0527 0528 0529 % --- Executes during object creation, after setting all properties. 0530 function K2_edit2_CreateFcn(hObject, eventdata, handles) 0531 % hObject handle to K2_edit2 (see GCBO) 0532 % eventdata reserved - to be defined in a future version of MATLAB 0533 % handles empty - handles not created until after all CreateFcns called 0534 0535 % Hint: edit controls usually have a white background on Windows. 0536 % See ISPC and COMPUTER. 0537 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0538 set(hObject,'BackgroundColor','white'); 0539 end 0540 0541 0542 % --- Executes on slider movement. 0543 function K2_slider2_Callback(hObject, eventdata, handles) 0544 % hObject handle to K2_slider2 (see GCBO) 0545 % eventdata reserved - to be defined in a future version of MATLAB 0546 % handles structure with handles and user data (see GUIDATA) 0547 0548 % Hints: get(hObject,'Value') returns position of slider 0549 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 0550 0551 0552 % --- Executes during object creation, after setting all properties. 0553 function K2_slider2_CreateFcn(hObject, eventdata, handles) 0554 % hObject handle to K2_slider2 (see GCBO) 0555 % eventdata reserved - to be defined in a future version of MATLAB 0556 % handles empty - handles not created until after all CreateFcns called 0557 0558 % Hint: slider controls usually have a light gray background. 0559 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0560 set(hObject,'BackgroundColor',[.9 .9 .9]); 0561 end 0562 0563 0564 0565 function K3_edit3_Callback(hObject, eventdata, handles) 0566 % hObject handle to K3_edit3 (see GCBO) 0567 % eventdata reserved - to be defined in a future version of MATLAB 0568 % handles structure with handles and user data (see GUIDATA) 0569 0570 % Hints: get(hObject,'String') returns contents of K3_edit3 as text 0571 % str2double(get(hObject,'String')) returns contents of K3_edit3 as a double 0572 0573 0574 % --- Executes during object creation, after setting all properties. 0575 function K3_edit3_CreateFcn(hObject, eventdata, handles) 0576 % hObject handle to K3_edit3 (see GCBO) 0577 % eventdata reserved - to be defined in a future version of MATLAB 0578 % handles empty - handles not created until after all CreateFcns called 0579 0580 % Hint: edit controls usually have a white background on Windows. 0581 % See ISPC and COMPUTER. 0582 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0583 set(hObject,'BackgroundColor','white'); 0584 end 0585 0586 0587 % --- Executes on slider movement. 0588 function K3_slider3_Callback(hObject, eventdata, handles) 0589 % hObject handle to K3_slider3 (see GCBO) 0590 % eventdata reserved - to be defined in a future version of MATLAB 0591 % handles structure with handles and user data (see GUIDATA) 0592 0593 % Hints: get(hObject,'Value') returns position of slider 0594 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 0595 0596 0597 % --- Executes during object creation, after setting all properties. 0598 function K3_slider3_CreateFcn(hObject, eventdata, handles) 0599 % hObject handle to K3_slider3 (see GCBO) 0600 % eventdata reserved - to be defined in a future version of MATLAB 0601 % handles empty - handles not created until after all CreateFcns called 0602 0603 % Hint: slider controls usually have a light gray background. 0604 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0605 set(hObject,'BackgroundColor',[.9 .9 .9]); 0606 end 0607 0608 0609 0610 function K4_edit4_Callback(hObject, eventdata, handles) 0611 % hObject handle to K4_edit4 (see GCBO) 0612 % eventdata reserved - to be defined in a future version of MATLAB 0613 % handles structure with handles and user data (see GUIDATA) 0614 0615 % Hints: get(hObject,'String') returns contents of K4_edit4 as text 0616 % str2double(get(hObject,'String')) returns contents of K4_edit4 as a double 0617 0618 0619 % --- Executes during object creation, after setting all properties. 0620 function K4_edit4_CreateFcn(hObject, eventdata, handles) 0621 % hObject handle to K4_edit4 (see GCBO) 0622 % eventdata reserved - to be defined in a future version of MATLAB 0623 % handles empty - handles not created until after all CreateFcns called 0624 0625 % Hint: edit controls usually have a white background on Windows. 0626 % See ISPC and COMPUTER. 0627 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0628 set(hObject,'BackgroundColor','white'); 0629 end 0630 0631 0632 % --- Executes on slider movement. 0633 function K4_slider4_Callback(hObject, eventdata, handles) 0634 % hObject handle to K4_slider4 (see GCBO) 0635 % eventdata reserved - to be defined in a future version of MATLAB 0636 % handles structure with handles and user data (see GUIDATA) 0637 0638 % Hints: get(hObject,'Value') returns position of slider 0639 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 0640 0641 0642 % --- Executes during object creation, after setting all properties. 0643 function K4_slider4_CreateFcn(hObject, eventdata, handles) 0644 % hObject handle to K4_slider4 (see GCBO) 0645 % eventdata reserved - to be defined in a future version of MATLAB 0646 % handles empty - handles not created until after all CreateFcns called 0647 0648 % Hint: slider controls usually have a light gray background. 0649 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0650 set(hObject,'BackgroundColor',[.9 .9 .9]); 0651 end 0652 0653 0654 0655 function deltax_edit13_Callback(hObject, eventdata, handles) 0656 % hObject handle to deltax_edit13 (see GCBO) 0657 % eventdata reserved - to be defined in a future version of MATLAB 0658 % handles structure with handles and user data (see GUIDATA) 0659 0660 % Hints: get(hObject,'String') returns contents of deltax_edit13 as text 0661 % str2double(get(hObject,'String')) returns contents of deltax_edit13 as a double 0662 0663 0664 % --- Executes during object creation, after setting all properties. 0665 function deltax_edit13_CreateFcn(hObject, eventdata, handles) 0666 % hObject handle to deltax_edit13 (see GCBO) 0667 % eventdata reserved - to be defined in a future version of MATLAB 0668 % handles empty - handles not created until after all CreateFcns called 0669 0670 % Hint: edit controls usually have a white background on Windows. 0671 % See ISPC and COMPUTER. 0672 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0673 set(hObject,'BackgroundColor','white'); 0674 end 0675 0676 0677 % --- Executes on slider movement. 0678 function deltax_slider13_Callback(hObject, eventdata, handles) 0679 % hObject handle to deltax_slider13 (see GCBO) 0680 % eventdata reserved - to be defined in a future version of MATLAB 0681 % handles structure with handles and user data (see GUIDATA) 0682 0683 % Hints: get(hObject,'Value') returns position of slider 0684 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 0685 0686 % lire la valeur affich�e 0687 deltax = num2str(get(handles.deltax_edit13,'String')); 0688 deltax = deltax * 1e-3 % mm 0689 0690 L1 = (50 + 500 + 800 + 300) * 1e-3; 0691 L2 = 1e-3 * 600/2; 0692 0693 % % d�duction angles septa actifs et septum passif 0694 % val_HW_sa = getam('septa actifs...); 0695 % val_HW_sp = getam('septum passif...); 0696 % 0697 % val_ph_sa = deltax / L1; 0698 % val_HW_sa = val_HW_sa + physics2HW('sept...','Setpoint',val_ph_sa); 0699 % val_ph_sp = hw2physics('sept..','Setpoint',val_HW_sp); 0700 % val_ph_sp = val_ph_sp - val_ph_sa; 0701 % val_HW_sp = val_HW_sp + physics2HW('sept...','Setpoint',val_ph_sp); 0702 0703 % setsp('sept...','Setpoint',val_HW_sp); 0704 % setsp('septactif...','Setpoint',val_HW_sa); 0705 0706 % re-initaliser le slider � cette valeur de bump 0707 %set(handles.deltax_slider13,'Value',valeur_corr); 0708 0709 % --- Executes during object creation, after setting all properties. 0710 function deltax_slider13_CreateFcn(hObject, eventdata, handles) 0711 % hObject handle to deltax_slider13 (see GCBO) 0712 % eventdata reserved - to be defined in a future version of MATLAB 0713 % handles empty - handles not created until after all CreateFcns called 0714 0715 % Hint: slider controls usually have a light gray background. 0716 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0717 set(hObject,'BackgroundColor',[.9 .9 .9]); 0718 end 0719 0720 0721 0722 function deltaxp_edit14_Callback(hObject, eventdata, handles) 0723 % hObject handle to deltaxp_edit14 (see GCBO) 0724 % eventdata reserved - to be defined in a future version of MATLAB 0725 % handles structure with handles and user data (see GUIDATA) 0726 0727 % Hints: get(hObject,'String') returns contents of deltaxp_edit14 as text 0728 % str2double(get(hObject,'String')) returns contents of deltaxp_edit14 as a double 0729 0730 0731 % --- Executes during object creation, after setting all properties. 0732 function deltaxp_edit14_CreateFcn(hObject, eventdata, handles) 0733 % hObject handle to deltaxp_edit14 (see GCBO) 0734 % eventdata reserved - to be defined in a future version of MATLAB 0735 % handles empty - handles not created until after all CreateFcns called 0736 0737 % Hint: edit controls usually have a white background on Windows. 0738 % See ISPC and COMPUTER. 0739 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0740 set(hObject,'BackgroundColor','white'); 0741 end 0742 0743 0744 % --- Executes on slider movement. 0745 function deltaxp_slider14_Callback(hObject, eventdata, handles) 0746 % hObject handle to deltaxp_slider14 (see GCBO) 0747 % eventdata reserved - to be defined in a future version of MATLAB 0748 % handles structure with handles and user data (see GUIDATA) 0749 0750 % Hints: get(hObject,'Value') returns position of slider 0751 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 0752 0753 % lire la valeur affich�e 0754 deltaxp = num2str(get(handles.deltaxp_edit14,'String')); 0755 deltaxp = deltaxp * 1e-3 0756 0757 % pour point d'injection = point fixe, rapport entre les angles septum 0758 % passif et les septa actifs : RAP 0759 L1 = (50 + 500 + 800 + 300) * 1e-3; 0760 L2 = 1e-3 * 600/2; 0761 RAP = (L1-L2) / L2; 0762 0763 % val_HW_sp = getam('septum...); 0764 % val_HW_sa = getam('septa actifs...); 0765 0766 % val_ph_sp = deltaxp + hw2physics('sept..','Setpoint',val_HW_sp); 0767 % val_ph_sa = deltaxp * RAP + hw2physics('sept..','Setpoint',val_HW_sa); 0768 % val_HW_sp = physics2HW('sept...','Setpoint',val_ph_sp); 0769 % val_HW_sa = physics2HW('septactif...','Setpoint',val_ph_sa); 0770 % setsp('sept...','Setpoint',val_HW_sp); 0771 % setsp('septactif...','Setpoint',val_HW_sa); 0772 0773 % re-initaliser le slider � cette valeur de bump 0774 set(handles.deltaxp_slider14,'Value',valeur_corr); 0775 0776 0777 % --- Executes during object creation, after setting all properties. 0778 function deltaxp_slider14_CreateFcn(hObject, eventdata, handles) 0779 % hObject handle to deltaxp_slider14 (see GCBO) 0780 % eventdata reserved - to be defined in a future version of MATLAB 0781 % handles empty - handles not created until after all CreateFcns called 0782 0783 % Hint: slider controls usually have a light gray background. 0784 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0785 set(hObject,'BackgroundColor',[.9 .9 .9]); 0786 end 0787 0788 0789 0790 function deltaz_edit15_Callback(hObject, eventdata, handles) 0791 % hObject handle to deltaz_edit15 (see GCBO) 0792 % eventdata reserved - to be defined in a future version of MATLAB 0793 % handles structure with handles and user data (see GUIDATA) 0794 0795 % Hints: get(hObject,'String') returns contents of deltaz_edit15 as text 0796 % str2double(get(hObject,'String')) returns contents of deltaz_edit15 as a double 0797 0798 0799 % --- Executes during object creation, after setting all properties. 0800 function deltaz_edit15_CreateFcn(hObject, eventdata, handles) 0801 % hObject handle to deltaz_edit15 (see GCBO) 0802 % eventdata reserved - to be defined in a future version of MATLAB 0803 % handles empty - handles not created until after all CreateFcns called 0804 0805 % Hint: edit controls usually have a white background on Windows. 0806 % See ISPC and COMPUTER. 0807 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0808 set(hObject,'BackgroundColor','white'); 0809 end 0810 0811 0812 % --- Executes on slider movement. 0813 function deltaz_slider15_Callback(hObject, eventdata, handles) 0814 % hObject handle to deltaz_slider15 (see GCBO) 0815 % eventdata reserved - to be defined in a future version of MATLAB 0816 % handles structure with handles and user data (see GUIDATA) 0817 0818 % Hints: get(hObject,'Value') returns position of slider 0819 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 0820 0821 0822 % --- Executes during object creation, after setting all properties. 0823 function deltaz_slider15_CreateFcn(hObject, eventdata, handles) 0824 % hObject handle to deltaz_slider15 (see GCBO) 0825 % eventdata reserved - to be defined in a future version of MATLAB 0826 % handles empty - handles not created until after all CreateFcns called 0827 0828 % Hint: slider controls usually have a light gray background. 0829 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0830 set(hObject,'BackgroundColor',[.9 .9 .9]); 0831 end 0832 0833 0834 0835 function deltazp_edit16_Callback(hObject, eventdata, handles) 0836 % hObject handle to deltazp_edit16 (see GCBO) 0837 % eventdata reserved - to be defined in a future version of MATLAB 0838 % handles structure with handles and user data (see GUIDATA) 0839 0840 % Hints: get(hObject,'String') returns contents of deltazp_edit16 as text 0841 % str2double(get(hObject,'String')) returns contents of deltazp_edit16 as a double 0842 0843 0844 % --- Executes during object creation, after setting all properties. 0845 function deltazp_edit16_CreateFcn(hObject, eventdata, handles) 0846 % hObject handle to deltazp_edit16 (see GCBO) 0847 % eventdata reserved - to be defined in a future version of MATLAB 0848 % handles empty - handles not created until after all CreateFcns called 0849 0850 % Hint: edit controls usually have a white background on Windows. 0851 % See ISPC and COMPUTER. 0852 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0853 set(hObject,'BackgroundColor','white'); 0854 end 0855 0856 0857 % --- Executes on slider movement. 0858 function deltazp_slider16_Callback(hObject, eventdata, handles) 0859 % hObject handle to deltazp_slider16 (see GCBO) 0860 % eventdata reserved - to be defined in a future version of MATLAB 0861 % handles structure with handles and user data (see GUIDATA) 0862 0863 % Hints: get(hObject,'Value') returns position of slider 0864 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 0865 0866 0867 % --- Executes during object creation, after setting all properties. 0868 function deltazp_slider16_CreateFcn(hObject, eventdata, handles) 0869 % hObject handle to deltazp_slider16 (see GCBO) 0870 % eventdata reserved - to be defined in a future version of MATLAB 0871 % handles empty - handles not created until after all CreateFcns called 0872 0873 % Hint: slider controls usually have a light gray background. 0874 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0875 set(hObject,'BackgroundColor',[.9 .9 .9]); 0876 end 0877 0878 function uibuttongroup_SelectionChangeFcn(hObject,eventdata,handles) 0879 % hObject handle to uipanel1 (see GCBO) 0880 % eventdata reserved - to be defined in a future version of MATLAB 0881 % handles structure with handles and user data (see GUIDATA) 0882 0883 switch get(get(hObject,'SelectedObject'),'Tag') % Get Tag of selected object 0884 case 'radiobutton1' 0885 % code piece when radiobutton1 is selected goes here 0886 % 0887 set([handles.K1_edit1,handles.K1_slider1,... 0888 handles.K2_edit2,handles.K2_slider2,... 0889 handles.K3_edit3,handles.K3_slider3,... 0890 handles.K4_edit4,handles.K4_slider4,... 0891 handles.K1_U_edit,handles.K1_U_slider,... 0892 handles.K2_U_edit,handles.K2_U_slider,... 0893 handles.K3_U_edit,handles.K3_U_slider,... 0894 handles.K4_U_edit,handles.K4_U_slider,... 0895 ],'Enable','off') 0896 0897 case 'radiobutton2' 0898 % code piece when radiobutton2 is selected goes here 0899 % 0900 set([... 0901 handles.K2_edit2,handles.K2_slider2,... 0902 ... 0903 handles.K4_edit4,handles.K4_slider4,... 0904 ... 0905 handles.K2_U_edit,handles.K2_U_slider,... 0906 ... 0907 handles.K4_U_edit,handles.K4_U_slider,... 0908 ],'Enable','off'); 0909 set([handles.K1_edit1,handles.K1_slider1,... 0910 ... 0911 handles.K3_edit3,handles.K3_slider3,... 0912 ... 0913 handles.K1_U_edit,handles.K1_U_slider,... 0914 ... 0915 handles.K3_U_edit,handles.K3_U_slider,... 0916 ... 0917 ],'Enable','on') 0918 case 'radiobutton3' 0919 % code piece when radiobutton1 is selected goes here 0920 % 0921 set([handles.K1_edit1,handles.K1_slider1,... 0922 handles.K2_edit2,handles.K2_slider2,... 0923 handles.K3_edit3,handles.K3_slider3,... 0924 handles.K4_edit4,handles.K4_slider4,... 0925 handles.K1_U_edit,handles.K1_U_slider,... 0926 handles.K2_U_edit,handles.K2_U_slider,... 0927 handles.K3_U_edit,handles.K3_U_slider,... 0928 handles.K4_U_edit,handles.K4_U_slider,... 0929 ],'Enable','on') 0930 0931 end 0932 0933 0934 0935 function bump_edit21_Callback(hObject, eventdata, handles) 0936 % hObject handle to bump_edit21 (see GCBO) 0937 % eventdata reserved - to be defined in a future version of MATLAB 0938 % handles structure with handles and user data (see GUIDATA) 0939 0940 % Hints: get(hObject,'String') returns contents of bump_edit21 as text 0941 % str2double(get(hObject,'String')) returns contents of bump_edit21 as a double 0942 bump = str2num(get(handles.bump_edit21,'String')); 0943 0944 % valeur 4 kickers en rad 0945 val_ph_K = bump * handles.eff_K * 1e-3; 0946 % % valeurs 4 kickers en V 0947 % val_HW_K = physics2HW('Kick...','Setpoint',val_ph_K); 0948 % % appliquer les 4 valeurs (transformer peut-�tre en vecteurs 4 valeurs 0949 % % altern�es) 0950 % setsp('Kick...', 'Setpoint',val_HW_K) 0951 0952 % afficher dans edit des kickers 0953 %set(handles.K1_edit1,'String',num2str(val_HW_K(1))); % etc.. 0954 0955 % re-initaliser le slider � cette valeur de bump 0956 %set(handles.K1_slider1,'Value',val_HW_K(1)); 0957 %set(handles.K2_slider2,'Value',val_HW_K(2)); %etc.. 0958 0959 0960 % --- Executes during object creation, after setting all properties. 0961 function bump_edit21_CreateFcn(hObject, eventdata, handles) 0962 % hObject handle to bump_edit21 (see GCBO) 0963 % eventdata reserved - to be defined in a future version of MATLAB 0964 % handles empty - handles not created until after all CreateFcns called 0965 0966 % Hint: edit controls usually have a white background on Windows. 0967 % See ISPC and COMPUTER. 0968 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0969 set(hObject,'BackgroundColor','white'); 0970 end 0971 0972 0973 % --- Executes on button press in BPM1_checkbox. 0974 function BPM1_checkbox_Callback(hObject, eventdata, handles) 0975 % hObject handle to BPM1_checkbox (see GCBO) 0976 % eventdata reserved - to be defined in a future version of MATLAB 0977 % handles structure with handles and user data (see GUIDATA) 0978 0979 % Hint: get(hObject,'Value') returns toggle state of BPM1_checkbox 0980 0981 nbmaxBPM = getappdata(handles.figure1,'nbmaxBPM'); 0982 BPMxList = getappdata(handles.figure1,'BPMxList'); 0983 num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 0984 BPMxListtotal = family2dev('BPMx', 0 ); 0985 0986 if (get(hObject,'Value') == get(hObject,'Max')) 0987 % then checkbox is checked-take approriate action 0988 num_BPM_actif(1) = 1; 0989 BPMxList = intersect(BPMxList,BPMxListtotal(1:nbmaxBPM,:),'rows'); 0990 else 0991 % checkbox is not checked-take approriate action 0992 num_BPM_actif(1) = 0; 0993 BPMxList = intersect(BPMxList,BPMxListtotal(2:nbmaxBPM,:),'rows'); 0994 0995 end 0996 setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 0997 setappdata(handles.figure1,'BPMxList',BPMxList); 0998 mycallbackenergytunette(1,1,hObject, eventdata, handles) 0999 1000 % --- Executes on button press in BPM2_checkbox. 1001 function BPM2_checkbox_Callback(hObject, eventdata, handles) 1002 % hObject handle to BPM2_checkbox (see GCBO) 1003 % eventdata reserved - to be defined in a future version of MATLAB 1004 % handles structure with handles and user data (see GUIDATA) 1005 1006 % Hint: get(hObject,'Value') returns toggle state of BPM2_checkbox 1007 nbmaxBPM = getappdata(handles.figure1,'nbmaxBPM'); 1008 BPMxList = getappdata(handles.figure1,'BPMxList'); 1009 num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 1010 BPMxListtotal = family2dev('BPMx', 0 ); 1011 1012 if (get(hObject,'Value') == get(hObject,'Max')) 1013 % then checkbox is checked-take approriate action 1014 num_BPM_actif(2) = 1; 1015 BPMxList = intersect(BPMxList,BPMxListtotal(1:nbmaxBPM,:),'rows'); 1016 else 1017 % checkbox is not checked-take approriate action 1018 num_BPM_actif(2) = 0; 1019 BPMxList = intersect(BPMxList,[BPMxListtotal(1,:); BPMxListtotal(3:nbmaxBPM,:)],'rows'); 1020 1021 end 1022 setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 1023 setappdata(handles.figure1,'BPMxList',BPMxList); 1024 mycallbackenergytunette(1,1,hObject, eventdata, handles) 1025 1026 1027 1028 1029 1030 % 1031 % 1032 % if (get(hObject,'Value') == get(hObject,'Max')) 1033 % % then checkbox is checked-take approriate action 1034 % num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 1035 % num_BPM_actif(2) = 1; 1036 % setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 1037 % else 1038 % % checkbox is not checked-take approriate action 1039 % num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 1040 % num_BPM_actif(2) = 0; 1041 % setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 1042 % end 1043 1044 % --- Executes on button press in BPM3_checkbox. 1045 function BPM3_checkbox_Callback(hObject, eventdata, handles) 1046 % hObject handle to BPM3_checkbox (see GCBO) 1047 % eventdata reserved - to be defined in a future version of MATLAB 1048 % handles structure with handles and user data (see GUIDATA) 1049 1050 % Hint: get(hObject,'Value') returns toggle state of BPM3_checkbox 1051 nbmaxBPM = getappdata(handles.figure1,'nbmaxBPM'); 1052 BPMxList = getappdata(handles.figure1,'BPMxList'); 1053 num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 1054 BPMxListtotal = family2dev('BPMx', 0 ); 1055 1056 if (get(hObject,'Value') == get(hObject,'Max')) 1057 % then checkbox is checked-take approriate action 1058 num_BPM_actif(3) = 1; 1059 BPMxList = intersect(BPMxList,BPMxListtotal(1:nbmaxBPM,:),'rows'); 1060 else 1061 % checkbox is not checked-take approriate action 1062 num_BPM_actif(3) = 0; 1063 BPMxList = intersect(BPMxList,[BPMxListtotal(1:2,:); BPMxListtotal(4:nbmaxBPM,:)],'rows'); 1064 1065 end 1066 setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 1067 setappdata(handles.figure1,'BPMxList',BPMxList); 1068 mycallbackenergytunette(1,1,hObject, eventdata, handles) 1069 1070 1071 1072 % --- Executes on button press in BPM4_checkbox. 1073 function BPM4_checkbox_Callback(hObject, eventdata, handles) 1074 % hObject handle to BPM4_checkbox (see GCBO) 1075 % eventdata reserved - to be defined in a future version of MATLAB 1076 % handles structure with handles and user data (see GUIDATA) 1077 1078 % Hint: get(hObject,'Value') returns toggle state of BPM4_checkbox 1079 nbmaxBPM = getappdata(handles.figure1,'nbmaxBPM'); 1080 BPMxList = getappdata(handles.figure1,'BPMxList'); 1081 num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 1082 BPMxListtotal = family2dev('BPMx', 0 ); 1083 1084 if (get(hObject,'Value') == get(hObject,'Max')) 1085 % then checkbox is checked-take approriate action 1086 num_BPM_actif(4) = 1; 1087 BPMxList = intersect(BPMxList,BPMxListtotal(1:nbmaxBPM,:),'rows'); 1088 else 1089 % checkbox is not checked-take approriate action 1090 num_BPM_actif(4) = 0; 1091 BPMxList = intersect(BPMxList,[BPMxListtotal(1:3,:); BPMxListtotal(5:nbmaxBPM,:)],'rows'); 1092 1093 end 1094 setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 1095 setappdata(handles.figure1,'BPMxList',BPMxList); 1096 mycallbackenergytunette(1,1,hObject, eventdata, handles) 1097 1098 1099 % --- Executes on button press in BPM5_checkbox. 1100 function BPM5_checkbox_Callback(hObject, eventdata, handles) 1101 % hObject handle to BPM5_checkbox (see GCBO) 1102 % eventdata reserved - to be defined in a future version of MATLAB 1103 % handles structure with handles and user data (see GUIDATA) 1104 1105 % Hint: get(hObject,'Value') returns toggle state of BPM5_checkbox 1106 nbmaxBPM = getappdata(handles.figure1,'nbmaxBPM'); 1107 BPMxList = getappdata(handles.figure1,'BPMxList'); 1108 num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 1109 BPMxListtotal = family2dev('BPMx', 0 ); 1110 1111 if (get(hObject,'Value') == get(hObject,'Max')) 1112 % then checkbox is checked-take approriate action 1113 num_BPM_actif(5) = 1; 1114 BPMxList = intersect(BPMxList,BPMxListtotal(1:nbmaxBPM,:),'rows'); 1115 else 1116 % checkbox is not checked-take approriate action 1117 num_BPM_actif(5) = 0; 1118 BPMxList = intersect(BPMxList,[BPMxListtotal(1:4,:); BPMxListtotal(6:nbmaxBPM,:)],'rows'); 1119 1120 end 1121 setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 1122 setappdata(handles.figure1,'BPMxList',BPMxList); 1123 mycallbackenergytunette(1,1,hObject, eventdata, handles) 1124 1125 % --- Executes on button press in BPM6_checkbox. 1126 function BPM6_checkbox_Callback(hObject, eventdata, handles) 1127 % hObject handle to BPM6_checkbox (see GCBO) 1128 % eventdata reserved - to be defined in a future version of MATLAB 1129 % handles structure with handles and user data (see GUIDATA) 1130 1131 % Hint: get(hObject,'Value') returns toggle state of BPM6_checkbox 1132 nbmaxBPM = getappdata(handles.figure1,'nbmaxBPM'); 1133 BPMxList = getappdata(handles.figure1,'BPMxList'); 1134 num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 1135 BPMxListtotal = family2dev('BPMx', 0 ); 1136 1137 if (get(hObject,'Value') == get(hObject,'Max')) 1138 % then checkbox is checked-take approriate action 1139 num_BPM_actif(6) = 1; 1140 BPMxList = intersect(BPMxList,BPMxListtotal(1:nbmaxBPM,:),'rows'); 1141 else 1142 % checkbox is not checked-take approriate action 1143 num_BPM_actif(6) = 0; 1144 BPMxList = intersect(BPMxList,[BPMxListtotal(1:5,:); BPMxListtotal(7:nbmaxBPM,:)],'rows'); 1145 1146 end 1147 setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 1148 setappdata(handles.figure1,'BPMxList',BPMxList); 1149 mycallbackenergytunette(1,1,hObject, eventdata, handles) 1150 1151 % --- Executes on button press in BPM7_checkbox. 1152 function BPM7_checkbox_Callback(hObject, eventdata, handles) 1153 % hObject handle to BPM7_checkbox (see GCBO) 1154 % eventdata reserved - to be defined in a future version of MATLAB 1155 % handles structure with handles and user data (see GUIDATA) 1156 1157 % Hint: get(hObject,'Value') returns toggle state of BPM7_checkbox 1158 nbmaxBPM = getappdata(handles.figure1,'nbmaxBPM'); 1159 BPMxList = getappdata(handles.figure1,'BPMxList'); 1160 num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 1161 BPMxListtotal = family2dev('BPMx', 0 ); 1162 1163 if (get(hObject,'Value') == get(hObject,'Max')) 1164 % then checkbox is checked-take approriate action 1165 num_BPM_actif(7) = 1; 1166 BPMxList = intersect(BPMxList,BPMxListtotal(1:nbmaxBPM,:),'rows'); 1167 else 1168 % checkbox is not checked-take approriate action 1169 num_BPM_actif(7) = 0; 1170 BPMxList = intersect(BPMxList,[BPMxListtotal(1:6,:); BPMxListtotal(8:nbmaxBPM,:)],'rows'); 1171 1172 end 1173 setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 1174 setappdata(handles.figure1,'BPMxList',BPMxList); 1175 mycallbackenergytunette(1,1,hObject, eventdata, handles) 1176 1177 % --- Executes on button press in BPM8_checkbox. 1178 function BPM8_checkbox_Callback(hObject, eventdata, handles) 1179 % hObject handle to BPM8_checkbox (see GCBO) 1180 % eventdata reserved - to be defined in a future version of MATLAB 1181 % handles structure with handles and user data (see GUIDATA) 1182 1183 % Hint: get(hObject,'Value') returns toggle state of BPM8_checkbox 1184 nbmaxBPM = getappdata(handles.figure1,'nbmaxBPM'); 1185 BPMxList = getappdata(handles.figure1,'BPMxList'); 1186 num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 1187 BPMxListtotal = family2dev('BPMx', 0 ); 1188 1189 if (get(hObject,'Value') == get(hObject,'Max')) 1190 % then checkbox is checked-take approriate action 1191 num_BPM_actif(8) = 1; 1192 BPMxList = intersect(BPMxList,BPMxListtotal(1:nbmaxBPM,:),'rows'); 1193 else 1194 % checkbox is not checked-take approriate action 1195 num_BPM_actif(8) = 0; 1196 BPMxList = intersect(BPMxList,[BPMxListtotal(1:7,:); BPMxListtotal(9:nbmaxBPM,:)],'rows'); 1197 1198 end 1199 setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 1200 setappdata(handles.figure1,'BPMxList',BPMxList); 1201 mycallbackenergytunette(1,1,hObject, eventdata, handles) 1202 1203 % --- Executes on button press in BPM9_checkbox. 1204 function BPM9_checkbox_Callback(hObject, eventdata, handles) 1205 % hObject handle to BPM9_checkbox (see GCBO) 1206 % eventdata reserved - to be defined in a future version of MATLAB 1207 % handles structure with handles and user data (see GUIDATA) 1208 1209 % Hint: get(hObject,'Value') returns toggle state of BPM9_checkbox 1210 nbmaxBPM = getappdata(handles.figure1,'nbmaxBPM'); 1211 BPMxList = getappdata(handles.figure1,'BPMxList'); 1212 num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 1213 BPMxListtotal = family2dev('BPMx', 0 ); 1214 1215 if (get(hObject,'Value') == get(hObject,'Max')) 1216 % then checkbox is checked-take approriate action 1217 num_BPM_actif(9) = 1; 1218 BPMxList = intersect(BPMxList,BPMxListtotal(1:nbmaxBPM,:),'rows'); 1219 else 1220 % checkbox is not checked-take approriate action 1221 num_BPM_actif(9) = 0; 1222 BPMxList = intersect(BPMxList,[BPMxListtotal(1:8,:); BPMxListtotal(10:nbmaxBPM,:)],'rows'); 1223 1224 end 1225 setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 1226 setappdata(handles.figure1,'BPMxList',BPMxList); 1227 mycallbackenergytunette(1,1,hObject, eventdata, handles) 1228 1229 % --- Executes on button press in BPM10_checkbox. 1230 function BPM10_checkbox_Callback(hObject, eventdata, handles) 1231 % hObject handle to BPM10_checkbox (see GCBO) 1232 % eventdata reserved - to be defined in a future version of MATLAB 1233 % handles structure with handles and user data (see GUIDATA) 1234 1235 % Hint: get(hObject,'Value') returns toggle state of BPM10_checkbox 1236 nbmaxBPM = getappdata(handles.figure1,'nbmaxBPM'); 1237 BPMxList = getappdata(handles.figure1,'BPMxList'); 1238 num_BPM_actif = getappdata(handles.figure1,'num_BPM_actif'); 1239 BPMxListtotal = family2dev('BPMx', 0 ); 1240 1241 if (get(hObject,'Value') == get(hObject,'Max')) 1242 % then checkbox is checked-take approriate action 1243 num_BPM_actif(10) = 1; 1244 BPMxList = intersect(BPMxList,BPMxListtotal(1:nbmaxBPM,:),'rows'); 1245 else 1246 % checkbox is not checked-take approriate action 1247 num_BPM_actif(10) = 0; 1248 BPMxList = intersect(BPMxList,BPMxListtotal(1:9,:),'rows'); 1249 1250 end 1251 setappdata(handles.figure1,'num_BPM_actif',num_BPM_actif); 1252 setappdata(handles.figure1,'BPMxList',BPMxList); 1253 mycallbackenergytunette(1,1,hObject, eventdata, handles) 1254 1255 function K1_U_edit_Callback(hObject, eventdata, handles) 1256 % hObject handle to K1_U_edit (see GCBO) 1257 % eventdata reserved - to be defined in a future version of MATLAB 1258 % handles structure with handles and user data (see GUIDATA) 1259 1260 % Hints: get(hObject,'String') returns contents of K1_U_edit as text 1261 % str2double(get(hObject,'String')) returns contents of K1_U_edit as a double 1262 1263 1264 % --- Executes during object creation, after setting all properties. 1265 function K1_U_edit_CreateFcn(hObject, eventdata, handles) 1266 % hObject handle to K1_U_edit (see GCBO) 1267 % eventdata reserved - to be defined in a future version of MATLAB 1268 % handles empty - handles not created until after all CreateFcns called 1269 1270 % Hint: edit controls usually have a white background on Windows. 1271 % See ISPC and COMPUTER. 1272 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1273 set(hObject,'BackgroundColor','white'); 1274 end 1275 1276 1277 % --- Executes on slider movement. 1278 function K1_U_slider_Callback(hObject, eventdata, handles) 1279 % hObject handle to K1_U_slider (see GCBO) 1280 % eventdata reserved - to be defined in a future version of MATLAB 1281 % handles structure with handles and user data (see GUIDATA) 1282 1283 % Hints: get(hObject,'Value') returns position of slider 1284 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1285 1286 1287 % --- Executes during object creation, after setting all properties. 1288 function K1_U_slider_CreateFcn(hObject, eventdata, handles) 1289 % hObject handle to K1_U_slider (see GCBO) 1290 % eventdata reserved - to be defined in a future version of MATLAB 1291 % handles empty - handles not created until after all CreateFcns called 1292 1293 % Hint: slider controls usually have a light gray background. 1294 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1295 set(hObject,'BackgroundColor',[.9 .9 .9]); 1296 end 1297 1298 1299 1300 function K2_U_edit_Callback(hObject, eventdata, handles) 1301 % hObject handle to K2_U_edit (see GCBO) 1302 % eventdata reserved - to be defined in a future version of MATLAB 1303 % handles structure with handles and user data (see GUIDATA) 1304 1305 % Hints: get(hObject,'String') returns contents of K2_U_edit as text 1306 % str2double(get(hObject,'String')) returns contents of K2_U_edit as a double 1307 1308 1309 % --- Executes during object creation, after setting all properties. 1310 function K2_U_edit_CreateFcn(hObject, eventdata, handles) 1311 % hObject handle to K2_U_edit (see GCBO) 1312 % eventdata reserved - to be defined in a future version of MATLAB 1313 % handles empty - handles not created until after all CreateFcns called 1314 1315 % Hint: edit controls usually have a white background on Windows. 1316 % See ISPC and COMPUTER. 1317 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1318 set(hObject,'BackgroundColor','white'); 1319 end 1320 1321 1322 % --- Executes on slider movement. 1323 function K2_U_slider_Callback(hObject, eventdata, handles) 1324 % hObject handle to K2_U_slider (see GCBO) 1325 % eventdata reserved - to be defined in a future version of MATLAB 1326 % handles structure with handles and user data (see GUIDATA) 1327 1328 % Hints: get(hObject,'Value') returns position of slider 1329 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1330 1331 1332 % --- Executes during object creation, after setting all properties. 1333 function K2_U_slider_CreateFcn(hObject, eventdata, handles) 1334 % hObject handle to K2_U_slider (see GCBO) 1335 % eventdata reserved - to be defined in a future version of MATLAB 1336 % handles empty - handles not created until after all CreateFcns called 1337 1338 % Hint: slider controls usually have a light gray background. 1339 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1340 set(hObject,'BackgroundColor',[.9 .9 .9]); 1341 end 1342 1343 1344 1345 function K3_U_edit_Callback(hObject, eventdata, handles) 1346 % hObject handle to K3_U_edit (see GCBO) 1347 % eventdata reserved - to be defined in a future version of MATLAB 1348 % handles structure with handles and user data (see GUIDATA) 1349 1350 % Hints: get(hObject,'String') returns contents of K3_U_edit as text 1351 % str2double(get(hObject,'String')) returns contents of K3_U_edit as a double 1352 1353 1354 % --- Executes during object creation, after setting all properties. 1355 function K3_U_edit_CreateFcn(hObject, eventdata, handles) 1356 % hObject handle to K3_U_edit (see GCBO) 1357 % eventdata reserved - to be defined in a future version of MATLAB 1358 % handles empty - handles not created until after all CreateFcns called 1359 1360 % Hint: edit controls usually have a white background on Windows. 1361 % See ISPC and COMPUTER. 1362 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1363 set(hObject,'BackgroundColor','white'); 1364 end 1365 1366 1367 % --- Executes on slider movement. 1368 function K3_U_slider_Callback(hObject, eventdata, handles) 1369 % hObject handle to K3_U_slider (see GCBO) 1370 % eventdata reserved - to be defined in a future version of MATLAB 1371 % handles structure with handles and user data (see GUIDATA) 1372 1373 % Hints: get(hObject,'Value') returns position of slider 1374 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1375 1376 1377 % --- Executes during object creation, after setting all properties. 1378 function K3_U_slider_CreateFcn(hObject, eventdata, handles) 1379 % hObject handle to K3_U_slider (see GCBO) 1380 % eventdata reserved - to be defined in a future version of MATLAB 1381 % handles empty - handles not created until after all CreateFcns called 1382 1383 % Hint: slider controls usually have a light gray background. 1384 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1385 set(hObject,'BackgroundColor',[.9 .9 .9]); 1386 end 1387 1388 1389 1390 function K4_U_edit_Callback(hObject, eventdata, handles) 1391 % hObject handle to K4_U_edit (see GCBO) 1392 % eventdata reserved - to be defined in a future version of MATLAB 1393 % handles structure with handles and user data (see GUIDATA) 1394 1395 % Hints: get(hObject,'String') returns contents of K4_U_edit as text 1396 % str2double(get(hObject,'String')) returns contents of K4_U_edit as a double 1397 1398 1399 % --- Executes during object creation, after setting all properties. 1400 function K4_U_edit_CreateFcn(hObject, eventdata, handles) 1401 % hObject handle to K4_U_edit (see GCBO) 1402 % eventdata reserved - to be defined in a future version of MATLAB 1403 % handles empty - handles not created until after all CreateFcns called 1404 1405 % Hint: edit controls usually have a white background on Windows. 1406 % See ISPC and COMPUTER. 1407 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1408 set(hObject,'BackgroundColor','white'); 1409 end 1410 1411 1412 % --- Executes on slider movement. 1413 function K4_U_slider_Callback(hObject, eventdata, handles) 1414 % hObject handle to K4_U_slider (see GCBO) 1415 % eventdata reserved - to be defined in a future version of MATLAB 1416 % handles structure with handles and user data (see GUIDATA) 1417 1418 % Hints: get(hObject,'Value') returns position of slider 1419 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1420 1421 1422 % --- Executes during object creation, after setting all properties. 1423 function K4_U_slider_CreateFcn(hObject, eventdata, handles) 1424 % hObject handle to K4_U_slider (see GCBO) 1425 % eventdata reserved - to be defined in a future version of MATLAB 1426 % handles empty - handles not created until after all CreateFcns called 1427 1428 % Hint: slider controls usually have a light gray background. 1429 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1430 set(hObject,'BackgroundColor',[.9 .9 .9]); 1431 end 1432 1433 1434 1435 function septum_actif_a_edit_Callback(hObject, eventdata, handles) 1436 % hObject handle to septum_actif_a_edit (see GCBO) 1437 % eventdata reserved - to be defined in a future version of MATLAB 1438 % handles structure with handles and user data (see GUIDATA) 1439 1440 % Hints: get(hObject,'String') returns contents of septum_actif_a_edit as text 1441 % str2double(get(hObject,'String')) returns contents of septum_actif_a_edit as a double 1442 1443 1444 % --- Executes during object creation, after setting all properties. 1445 function septum_actif_a_edit_CreateFcn(hObject, eventdata, handles) 1446 % hObject handle to septum_actif_a_edit (see GCBO) 1447 % eventdata reserved - to be defined in a future version of MATLAB 1448 % handles empty - handles not created until after all CreateFcns called 1449 1450 % Hint: edit controls usually have a white background on Windows. 1451 % See ISPC and COMPUTER. 1452 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1453 set(hObject,'BackgroundColor','white'); 1454 end 1455 1456 1457 % --- Executes on slider movement. 1458 function septum_actif_a_slider_Callback(hObject, eventdata, handles) 1459 % hObject handle to septum_actif_a_slider (see GCBO) 1460 % eventdata reserved - to be defined in a future version of MATLAB 1461 % handles structure with handles and user data (see GUIDATA) 1462 1463 % Hints: get(hObject,'Value') returns position of slider 1464 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1465 1466 1467 % --- Executes during object creation, after setting all properties. 1468 function septum_actif_a_slider_CreateFcn(hObject, eventdata, handles) 1469 % hObject handle to septum_actif_a_slider (see GCBO) 1470 % eventdata reserved - to be defined in a future version of MATLAB 1471 % handles empty - handles not created until after all CreateFcns called 1472 1473 % Hint: slider controls usually have a light gray background. 1474 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1475 set(hObject,'BackgroundColor',[.9 .9 .9]); 1476 end 1477 1478 1479 1480 function septum_passif_a_edit_Callback(hObject, eventdata, handles) 1481 % hObject handle to septum_passif_a_edit (see GCBO) 1482 % eventdata reserved - to be defined in a future version of MATLAB 1483 % handles structure with handles and user data (see GUIDATA) 1484 1485 % Hints: get(hObject,'String') returns contents of septum_passif_a_edit as text 1486 % str2double(get(hObject,'String')) returns contents of septum_passif_a_edit as a double 1487 1488 1489 % --- Executes during object creation, after setting all properties. 1490 function septum_passif_a_edit_CreateFcn(hObject, eventdata, handles) 1491 % hObject handle to septum_passif_a_edit (see GCBO) 1492 % eventdata reserved - to be defined in a future version of MATLAB 1493 % handles empty - handles not created until after all CreateFcns called 1494 1495 % Hint: edit controls usually have a white background on Windows. 1496 % See ISPC and COMPUTER. 1497 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1498 set(hObject,'BackgroundColor','white'); 1499 end 1500 1501 1502 % --- Executes on slider movement. 1503 function septum_passif_a_slider_Callback(hObject, eventdata, handles) 1504 % hObject handle to septum_passif_a_slider (see GCBO) 1505 % eventdata reserved - to be defined in a future version of MATLAB 1506 % handles structure with handles and user data (see GUIDATA) 1507 1508 % Hints: get(hObject,'Value') returns position of slider 1509 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1510 1511 1512 % --- Executes during object creation, after setting all properties. 1513 function septum_passif_a_slider_CreateFcn(hObject, eventdata, handles) 1514 % hObject handle to septum_passif_a_slider (see GCBO) 1515 % eventdata reserved - to be defined in a future version of MATLAB 1516 % handles empty - handles not created until after all CreateFcns called 1517 1518 % Hint: slider controls usually have a light gray background. 1519 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1520 set(hObject,'BackgroundColor',[.9 .9 .9]); 1521 end 1522 1523 1524 1525 function CV4_a_edit_Callback(hObject, eventdata, handles) 1526 % hObject handle to CV4_a_edit (see GCBO) 1527 % eventdata reserved - to be defined in a future version of MATLAB 1528 % handles structure with handles and user data (see GUIDATA) 1529 1530 % Hints: get(hObject,'String') returns contents of CV4_a_edit as text 1531 % str2double(get(hObject,'String')) returns contents of CV4_a_edit as a double 1532 1533 1534 % --- Executes during object creation, after setting all properties. 1535 function CV4_a_edit_CreateFcn(hObject, eventdata, handles) 1536 % hObject handle to CV4_a_edit (see GCBO) 1537 % eventdata reserved - to be defined in a future version of MATLAB 1538 % handles empty - handles not created until after all CreateFcns called 1539 1540 % Hint: edit controls usually have a white background on Windows. 1541 % See ISPC and COMPUTER. 1542 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1543 set(hObject,'BackgroundColor','white'); 1544 end 1545 1546 1547 % --- Executes on slider movement. 1548 function CV4_a_slider_Callback(hObject, eventdata, handles) 1549 % hObject handle to CV4_a_slider (see GCBO) 1550 % eventdata reserved - to be defined in a future version of MATLAB 1551 % handles structure with handles and user data (see GUIDATA) 1552 1553 % Hints: get(hObject,'Value') returns position of slider 1554 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1555 1556 1557 % --- Executes during object creation, after setting all properties. 1558 function CV4_a_slider_CreateFcn(hObject, eventdata, handles) 1559 % hObject handle to CV4_a_slider (see GCBO) 1560 % eventdata reserved - to be defined in a future version of MATLAB 1561 % handles empty - handles not created until after all CreateFcns called 1562 1563 % Hint: slider controls usually have a light gray background. 1564 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1565 set(hObject,'BackgroundColor',[.9 .9 .9]); 1566 end 1567 1568 1569 1570 function CV5_a_edit_Callback(hObject, eventdata, handles) 1571 % hObject handle to CV5_a_edit (see GCBO) 1572 % eventdata reserved - to be defined in a future version of MATLAB 1573 % handles structure with handles and user data (see GUIDATA) 1574 1575 % Hints: get(hObject,'String') returns contents of CV5_a_edit as text 1576 % str2double(get(hObject,'String')) returns contents of CV5_a_edit as a double 1577 1578 1579 % --- Executes during object creation, after setting all properties. 1580 function CV5_a_edit_CreateFcn(hObject, eventdata, handles) 1581 % hObject handle to CV5_a_edit (see GCBO) 1582 % eventdata reserved - to be defined in a future version of MATLAB 1583 % handles empty - handles not created until after all CreateFcns called 1584 1585 % Hint: edit controls usually have a white background on Windows. 1586 % See ISPC and COMPUTER. 1587 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1588 set(hObject,'BackgroundColor','white'); 1589 end 1590 1591 1592 % --- Executes on slider movement. 1593 function CV5_a_slider_Callback(hObject, eventdata, handles) 1594 % hObject handle to CV5_a_slider (see GCBO) 1595 % eventdata reserved - to be defined in a future version of MATLAB 1596 % handles structure with handles and user data (see GUIDATA) 1597 1598 % Hints: get(hObject,'Value') returns position of slider 1599 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1600 1601 1602 % --- Executes during object creation, after setting all properties. 1603 function CV5_a_slider_CreateFcn(hObject, eventdata, handles) 1604 % hObject handle to CV5_a_slider (see GCBO) 1605 % eventdata reserved - to be defined in a future version of MATLAB 1606 % handles empty - handles not created until after all CreateFcns called 1607 1608 % Hint: slider controls usually have a light gray background. 1609 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1610 set(hObject,'BackgroundColor',[.9 .9 .9]); 1611 end 1612 1613 1614 % --- Executes on slider movement. 1615 function septum_actif_U_slider_Callback(hObject, eventdata, handles) 1616 % hObject handle to septum_actif_U_slider (see GCBO) 1617 % eventdata reserved - to be defined in a future version of MATLAB 1618 % handles structure with handles and user data (see GUIDATA) 1619 1620 % Hints: get(hObject,'Value') returns position of slider 1621 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1622 1623 1624 % --- Executes during object creation, after setting all properties. 1625 function septum_actif_U_slider_CreateFcn(hObject, eventdata, handles) 1626 % hObject handle to septum_actif_U_slider (see GCBO) 1627 % eventdata reserved - to be defined in a future version of MATLAB 1628 % handles empty - handles not created until after all CreateFcns called 1629 1630 % Hint: slider controls usually have a light gray background. 1631 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1632 set(hObject,'BackgroundColor',[.9 .9 .9]); 1633 end 1634 1635 1636 1637 function septum_passif_U_edit_Callback(hObject, eventdata, handles) 1638 % hObject handle to septum_passif_U_edit (see GCBO) 1639 % eventdata reserved - to be defined in a future version of MATLAB 1640 % handles structure with handles and user data (see GUIDATA) 1641 1642 % Hints: get(hObject,'String') returns contents of septum_passif_U_edit as text 1643 % str2double(get(hObject,'String')) returns contents of septum_passif_U_edit as a double 1644 1645 1646 % --- Executes during object creation, after setting all properties. 1647 function septum_passif_U_edit_CreateFcn(hObject, eventdata, handles) 1648 % hObject handle to septum_passif_U_edit (see GCBO) 1649 % eventdata reserved - to be defined in a future version of MATLAB 1650 % handles empty - handles not created until after all CreateFcns called 1651 1652 % Hint: edit controls usually have a white background on Windows. 1653 % See ISPC and COMPUTER. 1654 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1655 set(hObject,'BackgroundColor','white'); 1656 end 1657 1658 1659 % --- Executes on slider movement. 1660 function septum_passif_U_slider_Callback(hObject, eventdata, handles) 1661 % hObject handle to septum_passif_U_slider (see GCBO) 1662 % eventdata reserved - to be defined in a future version of MATLAB 1663 % handles structure with handles and user data (see GUIDATA) 1664 1665 % Hints: get(hObject,'Value') returns position of slider 1666 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1667 1668 1669 % --- Executes during object creation, after setting all properties. 1670 function septum_passif_U_slider_CreateFcn(hObject, eventdata, handles) 1671 % hObject handle to septum_passif_U_slider (see GCBO) 1672 % eventdata reserved - to be defined in a future version of MATLAB 1673 % handles empty - handles not created until after all CreateFcns called 1674 1675 % Hint: slider controls usually have a light gray background. 1676 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1677 set(hObject,'BackgroundColor',[.9 .9 .9]); 1678 end 1679 1680 1681 1682 function CV4_I_edit_Callback(hObject, eventdata, handles) 1683 % hObject handle to CV4_I_edit (see GCBO) 1684 % eventdata reserved - to be defined in a future version of MATLAB 1685 % handles structure with handles and user data (see GUIDATA) 1686 1687 % Hints: get(hObject,'String') returns contents of CV4_I_edit as text 1688 % str2double(get(hObject,'String')) returns contents of CV4_I_edit as a double 1689 1690 1691 % --- Executes during object creation, after setting all properties. 1692 function CV4_I_edit_CreateFcn(hObject, eventdata, handles) 1693 % hObject handle to CV4_I_edit (see GCBO) 1694 % eventdata reserved - to be defined in a future version of MATLAB 1695 % handles empty - handles not created until after all CreateFcns called 1696 1697 % Hint: edit controls usually have a white background on Windows. 1698 % See ISPC and COMPUTER. 1699 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1700 set(hObject,'BackgroundColor','white'); 1701 end 1702 1703 1704 % --- Executes on slider movement. 1705 function CV4_I_slider_Callback(hObject, eventdata, handles) 1706 % hObject handle to CV4_I_slider (see GCBO) 1707 % eventdata reserved - to be defined in a future version of MATLAB 1708 % handles structure with handles and user data (see GUIDATA) 1709 1710 % Hints: get(hObject,'Value') returns position of slider 1711 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1712 1713 1714 % --- Executes during object creation, after setting all properties. 1715 function CV4_I_slider_CreateFcn(hObject, eventdata, handles) 1716 % hObject handle to CV4_I_slider (see GCBO) 1717 % eventdata reserved - to be defined in a future version of MATLAB 1718 % handles empty - handles not created until after all CreateFcns called 1719 1720 % Hint: slider controls usually have a light gray background. 1721 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1722 set(hObject,'BackgroundColor',[.9 .9 .9]); 1723 end 1724 1725 1726 1727 function CV5_I_edit_Callback(hObject, eventdata, handles) 1728 % hObject handle to CV5_I_edit (see GCBO) 1729 % eventdata reserved - to be defined in a future version of MATLAB 1730 % handles structure with handles and user data (see GUIDATA) 1731 1732 % Hints: get(hObject,'String') returns contents of CV5_I_edit as text 1733 % str2double(get(hObject,'String')) returns contents of CV5_I_edit as a double 1734 1735 1736 % --- Executes during object creation, after setting all properties. 1737 function CV5_I_edit_CreateFcn(hObject, eventdata, handles) 1738 % hObject handle to CV5_I_edit (see GCBO) 1739 % eventdata reserved - to be defined in a future version of MATLAB 1740 % handles empty - handles not created until after all CreateFcns called 1741 1742 % Hint: edit controls usually have a white background on Windows. 1743 % See ISPC and COMPUTER. 1744 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1745 set(hObject,'BackgroundColor','white'); 1746 end 1747 1748 1749 % --- Executes on slider movement. 1750 function CV5_I_slider_Callback(hObject, eventdata, handles) 1751 % hObject handle to CV5_I_slider (see GCBO) 1752 % eventdata reserved - to be defined in a future version of MATLAB 1753 % handles structure with handles and user data (see GUIDATA) 1754 1755 % Hints: get(hObject,'Value') returns position of slider 1756 % get(hObject,'Min') and get(hObject,'Max') to determine range of slider 1757 1758 1759 % --- Executes during object creation, after setting all properties. 1760 function CV5_I_slider_CreateFcn(hObject, eventdata, handles) 1761 % hObject handle to CV5_I_slider (see GCBO) 1762 % eventdata reserved - to be defined in a future version of MATLAB 1763 % handles empty - handles not created until after all CreateFcns called 1764 1765 % Hint: slider controls usually have a light gray background. 1766 if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1767 set(hObject,'BackgroundColor',[.9 .9 .9]); 1768 end 1769 1770 1771 1772 function septum_actif_U_edit_Callback(hObject, eventdata, handles) 1773 % hObject handle to septum_actif_U_edit (see GCBO) 1774 % eventdata reserved - to be defined in a future version of MATLAB 1775 % handles structure with handles and user data (see GUIDATA) 1776 1777 % Hints: get(hObject,'String') returns contents of septum_actif_U_edit as text 1778 % str2double(get(hObject,'String')) returns contents of septum_actif_U_edit as a double 1779 1780 1781 % --- Executes during object creation, after setting all properties. 1782 function septum_actif_U_edit_CreateFcn(hObject, eventdata, handles) 1783 % hObject handle to septum_actif_U_edit (see GCBO) 1784 % eventdata reserved - to be defined in a future version of MATLAB 1785 % handles empty - handles not created until after all CreateFcns called 1786 1787 % Hint: edit controls usually have a white background on Windows. 1788 % See ISPC and COMPUTER. 1789 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 1790 set(hObject,'BackgroundColor','white'); 1791 end 1792 1793 1794 % bugs 1795 % --- Executes during object creation, after setting all properties. 1796 function edit56_CreateFcn(hObject, eventdata, handles) 1797 function edit57_CreateFcn(hObject, eventdata, handles) 1798 function slider55_CreateFcn(hObject, eventdata, handles) 1799 function slider56_CreateFcn(hObject, eventdata, handles) 1800