SYNCHRO_SURVEY M-file for synchro_survey.fig SYNCHRO_SURVEY, by itself, creates a new SYNCHRO_SURVEY or raises the existing singleton*. H = SYNCHRO_SURVEY returns the handle to a new SYNCHRO_SURVEY or the handle to the existing singleton*. SYNCHRO_SURVEY('CALLBACK',hObject,eventData,handles,...) calls the local function named CALLBACK in SYNCHRO_SURVEY.M with the given input arguments. SYNCHRO_SURVEY('Property','Value',...) creates a new SYNCHRO_SURVEY or raises the existing singleton*. Starting from the left, property value pairs are applied to the GUI before synchro_survey_OpeningFunction gets called. An unrecognized property name or invalid value makes property application stop. All inputs are passed to synchro_survey_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 = synchro_survey(varargin) 0002 % SYNCHRO_SURVEY M-file for synchro_survey.fig 0003 % SYNCHRO_SURVEY, by itself, creates a new SYNCHRO_SURVEY or raises the existing 0004 % singleton*. 0005 % 0006 % H = SYNCHRO_SURVEY returns the handle to a new SYNCHRO_SURVEY or the handle to 0007 % the existing singleton*. 0008 % 0009 % SYNCHRO_SURVEY('CALLBACK',hObject,eventData,handles,...) calls the local 0010 % function named CALLBACK in SYNCHRO_SURVEY.M with the given input arguments. 0011 % 0012 % SYNCHRO_SURVEY('Property','Value',...) creates a new SYNCHRO_SURVEY or raises the 0013 % existing singleton*. Starting from the left, property value pairs are 0014 % applied to the GUI before synchro_survey_OpeningFunction gets called. An 0015 % unrecognized property name or invalid value makes property application 0016 % stop. All inputs are passed to synchro_survey_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 synchro_survey 0024 0025 % Last Modified by GUIDE v2.5 12-Mar-2007 04:30:58 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', @synchro_survey_OpeningFcn, ... 0032 'gui_OutputFcn', @synchro_survey_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 0047 % --- Executes just before synchro_survey is made visible. 0048 function synchro_survey_OpeningFcn(hObject, eventdata, handles, varargin) 0049 % This function has no output args, see OutputFcn. 0050 % hObject handle to figure 0051 % eventdata reserved - to be defined in a future version of MATLAB 0052 % handles structure with handles and user data (see GUIDATA) 0053 % varargin command line arguments to synchro_survey (see VARARGIN) 0054 0055 % Choose default command line output for synchro_survey 0056 handles.output = hObject; 0057 0058 pushbutton_get_status_Callback(hObject, eventdata, handles) 0059 0060 % Update handles structure 0061 guidata(hObject, handles); 0062 0063 % UIWAIT makes synchro_survey wait for user response (see UIRESUME) 0064 % uiwait(handles.figure1); 0065 0066 0067 % --- Outputs from this function are returned to the command line. 0068 function varargout = synchro_survey_OutputFcn(hObject, eventdata, handles) 0069 % varargout cell array for returning output args (see VARARGOUT); 0070 % hObject handle to figure 0071 % eventdata reserved - to be defined in a future version of MATLAB 0072 % handles structure with handles and user data (see GUIDATA) 0073 0074 % Get default command line output from handles structure 0075 varargout{1} = handles.output; 0076 0077 0078 0079 function edit_LIN_lpm_Callback(hObject, eventdata, handles) 0080 % hObject handle to edit_LIN_lpm (see GCBO) 0081 % eventdata reserved - to be defined in a future version of MATLAB 0082 % handles structure with handles and user data (see GUIDATA) 0083 0084 % Hints: get(hObject,'String') returns contents of edit_LIN_lpm as text 0085 % str2double(get(hObject,'String')) returns contents of edit_LIN_lpm as a double 0086 0087 0088 0089 % --- Executes during object creation, after setting all properties. 0090 function edit_LIN_lpm_CreateFcn(hObject, eventdata, handles) 0091 % hObject handle to edit_LIN_lpm (see GCBO) 0092 % eventdata reserved - to be defined in a future version of MATLAB 0093 % handles empty - handles not created until after all CreateFcns called 0094 0095 % Hint: edit controls usually have a white background on Windows. 0096 % See ISPC and COMPUTER. 0097 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0098 set(hObject,'BackgroundColor','white'); 0099 end 0100 0101 0102 % --- Executes on button press in pushbutton_lt1_reset_get_status. 0103 function pushbutton_get_status_Callback(hObject, eventdata, handles) 0104 % hObject handle to pushbutton_lt1_reset_get_status (see GCBO) 0105 % eventdata reserved - to be defined in a future version of MATLAB 0106 % handles structure with handles and user data (see GUIDATA) 0107 0108 n=30; 0109 0110 temp=tango_read_attribute('LIN/SY/LOCAL.SPM.1','Status');txt=temp.value;[txt, color]=state_txt(txt); 0111 set(handles.edit_LIN_spm, 'String',txt); 0112 set(handles.edit_LIN_spm,'BackgroundColor',color); 0113 0114 temp=tango_read_attribute('LIN/SY/LOCAL.LPM.1','Status');txt=temp.value;[txt, color]=state_txt(txt); 0115 set(handles.edit_LIN_lpm, 'String',txt); 0116 set(handles.edit_LIN_lpm,'BackgroundColor',color); 0117 0118 temp=tango_read_attribute('BOO/SY/LOCAL.Binj.1','Status');txt=temp.value;[txt, color]=state_txt(txt); 0119 set(handles.edit_BOO_Binj, 'String',txt); 0120 set(handles.edit_BOO_Binj,'BackgroundColor',color); 0121 0122 temp=tango_read_attribute('BOO/SY/LOCAL.Alim.1', 'Status');txt=temp.value; [txt, color]=state_txt(txt); 0123 set(handles.edit_BOO_Alim, 'String',txt); 0124 set(handles.edit_BOO_Alim,'BackgroundColor',color); 0125 0126 temp=tango_read_attribute('BOO/SY/LOCAL.DG.3', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0127 set(handles.edit_BOO_DG3, 'String',txt); 0128 set(handles.edit_BOO_DG3,'BackgroundColor',color); 0129 0130 temp=tango_read_attribute('BOO/SY/LOCAL.Bext.1', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0131 set(handles.edit_BOO_Bext, 'String',txt); 0132 set(handles.edit_BOO_Bext,'BackgroundColor',color); 0133 0134 temp=tango_read_attribute('ANS-C01/SY/LOCAL.Ainj.1', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0135 set(handles.edit_ANS_Ainj1, 'String',txt); 0136 set(handles.edit_ANS_Ainj1,'BackgroundColor',color); 0137 0138 temp=tango_read_attribute('ANS-C01/SY/LOCAL.Ainj.2', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0139 set(handles.edit_ANS_Ainj2, 'String',txt); 0140 set(handles.edit_ANS_Ainj2, 'BackgroundColor',color); 0141 0142 temp=tango_read_attribute('ANS-C01/SY/LOCAL.DG.2', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0143 set(handles.edit_ANS_C01, 'String',txt); 0144 set(handles.edit_ANS_C01,'BackgroundColor',color); 0145 0146 temp=tango_read_attribute('ANS-C03/SY/LOCAL.DG.1', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0147 set(handles.edit_ANS_C03, 'String',txt); 0148 set(handles.edit_ANS_C03,'BackgroundColor',color); 0149 0150 temp=tango_read_attribute('ANS-C05/SY/LOCAL.DG.1', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0151 set(handles.edit_ANS_C05, 'String',txt); 0152 set(handles.edit_ANS_C05,'BackgroundColor',color); 0153 0154 temp=tango_read_attribute('ANS-C07/SY/LOCAL.DG.1', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0155 set(handles.edit_ANS_C07, 'String',txt); 0156 set(handles.edit_ANS_C07,'BackgroundColor',color); 0157 0158 temp=tango_read_attribute('ANS-C09/SY/LOCAL.DG.1', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0159 set(handles.edit_ANS_C09, 'String',txt); 0160 set(handles.edit_ANS_C09,'BackgroundColor',color); 0161 0162 temp=tango_read_attribute('ANS-C11/SY/LOCAL.DG.1', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0163 set(handles.edit_ANS_C11, 'String',txt); 0164 set(handles.edit_ANS_C11,'BackgroundColor',color); 0165 0166 temp=tango_read_attribute('ANS-C13/SY/LOCAL.DG.1', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0167 set(handles.edit_ANS_C13, 'String',txt); 0168 set(handles.edit_ANS_C13,'BackgroundColor',color); 0169 0170 temp=tango_read_attribute('ANS-C15/SY/LOCAL.DG.1', 'Status');txt=temp.value; [txt, color]=state_txt(txt); 0171 set(handles.edit_ANS_C15, 'String',txt); 0172 set(handles.edit_ANS_C15,'BackgroundColor',color); 0173 0174 temp=tango_read_attribute('ANS/SY/LOCAL.SDC.1', 'Status');txt=temp.value;[txt, color]=state_txt(txt); 0175 set(handles.edit_ANS_SDC, 'String',txt); 0176 set(handles.edit_ANS_SDC,'BackgroundColor',color); 0177 0178 function edit_BOO_Binj_Callback(hObject, eventdata, handles) 0179 % hObject handle to edit_BOO_Binj (see GCBO) 0180 % eventdata reserved - to be defined in a future version of MATLAB 0181 % handles structure with handles and user data (see GUIDATA) 0182 0183 % Hints: get(hObject,'String') returns contents of edit_BOO_Binj as text 0184 % str2double(get(hObject,'String')) returns contents of edit_BOO_Binj as a double 0185 0186 0187 % --- Executes during object creation, after setting all properties. 0188 function edit_BOO_Binj_CreateFcn(hObject, eventdata, handles) 0189 % hObject handle to edit_BOO_Binj (see GCBO) 0190 % eventdata reserved - to be defined in a future version of MATLAB 0191 % handles empty - handles not created until after all CreateFcns called 0192 0193 % Hint: edit controls usually have a white background on Windows. 0194 % See ISPC and COMPUTER. 0195 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0196 set(hObject,'BackgroundColor','white'); 0197 end 0198 0199 0200 0201 function edit_BOO_Alim_Callback(hObject, eventdata, handles) 0202 % hObject handle to edit_BOO_Alim (see GCBO) 0203 % eventdata reserved - to be defined in a future version of MATLAB 0204 % handles structure with handles and user data (see GUIDATA) 0205 0206 % Hints: get(hObject,'String') returns contents of edit_BOO_Alim as text 0207 % str2double(get(hObject,'String')) returns contents of edit_BOO_Alim as a double 0208 0209 0210 % --- Executes during object creation, after setting all properties. 0211 function edit_BOO_Alim_CreateFcn(hObject, eventdata, handles) 0212 % hObject handle to edit_BOO_Alim (see GCBO) 0213 % eventdata reserved - to be defined in a future version of MATLAB 0214 % handles empty - handles not created until after all CreateFcns called 0215 0216 % Hint: edit controls usually have a white background on Windows. 0217 % See ISPC and COMPUTER. 0218 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0219 set(hObject,'BackgroundColor','white'); 0220 end 0221 0222 0223 0224 function edit_BOO_DG3_Callback(hObject, eventdata, handles) 0225 % hObject handle to edit_BOO_DG3 (see GCBO) 0226 % eventdata reserved - to be defined in a future version of MATLAB 0227 % handles structure with handles and user data (see GUIDATA) 0228 0229 % Hints: get(hObject,'String') returns contents of edit_BOO_DG3 as text 0230 % str2double(get(hObject,'String')) returns contents of edit_BOO_DG3 as a double 0231 0232 0233 % --- Executes during object creation, after setting all properties. 0234 function edit_BOO_DG3_CreateFcn(hObject, eventdata, handles) 0235 % hObject handle to edit_BOO_DG3 (see GCBO) 0236 % eventdata reserved - to be defined in a future version of MATLAB 0237 % handles empty - handles not created until after all CreateFcns called 0238 0239 % Hint: edit controls usually have a white background on Windows. 0240 % See ISPC and COMPUTER. 0241 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0242 set(hObject,'BackgroundColor','white'); 0243 end 0244 0245 0246 0247 function edit_BOO_Bext_Callback(hObject, eventdata, handles) 0248 % hObject handle to edit_BOO_Bext (see GCBO) 0249 % eventdata reserved - to be defined in a future version of MATLAB 0250 % handles structure with handles and user data (see GUIDATA) 0251 0252 % Hints: get(hObject,'String') returns contents of edit_BOO_Bext as text 0253 % str2double(get(hObject,'String')) returns contents of edit_BOO_Bext as a double 0254 0255 0256 % --- Executes during object creation, after setting all properties. 0257 function edit_BOO_Bext_CreateFcn(hObject, eventdata, handles) 0258 % hObject handle to edit_BOO_Bext (see GCBO) 0259 % eventdata reserved - to be defined in a future version of MATLAB 0260 % handles empty - handles not created until after all CreateFcns called 0261 0262 % Hint: edit controls usually have a white background on Windows. 0263 % See ISPC and COMPUTER. 0264 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0265 set(hObject,'BackgroundColor','white'); 0266 end 0267 0268 0269 0270 function edit_ANS_Ainj1_Callback(hObject, eventdata, handles) 0271 % hObject handle to edit_ANS_Ainj1 (see GCBO) 0272 % eventdata reserved - to be defined in a future version of MATLAB 0273 % handles structure with handles and user data (see GUIDATA) 0274 0275 % Hints: get(hObject,'String') returns contents of edit_ANS_Ainj1 as text 0276 % str2double(get(hObject,'String')) returns contents of edit_ANS_Ainj1 as a double 0277 0278 0279 % --- Executes during object creation, after setting all properties. 0280 function edit_ANS_Ainj1_CreateFcn(hObject, eventdata, handles) 0281 % hObject handle to edit_ANS_Ainj1 (see GCBO) 0282 % eventdata reserved - to be defined in a future version of MATLAB 0283 % handles empty - handles not created until after all CreateFcns called 0284 0285 % Hint: edit controls usually have a white background on Windows. 0286 % See ISPC and COMPUTER. 0287 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0288 set(hObject,'BackgroundColor','white'); 0289 end 0290 0291 0292 0293 function edit_ANS_Ainj2_Callback(hObject, eventdata, handles) 0294 % hObject handle to edit_ANS_Ainj2 (see GCBO) 0295 % eventdata reserved - to be defined in a future version of MATLAB 0296 % handles structure with handles and user data (see GUIDATA) 0297 0298 % Hints: get(hObject,'String') returns contents of edit_ANS_Ainj2 as text 0299 % str2double(get(hObject,'String')) returns contents of edit_ANS_Ainj2 as a double 0300 0301 0302 % --- Executes during object creation, after setting all properties. 0303 function edit_ANS_Ainj2_CreateFcn(hObject, eventdata, handles) 0304 % hObject handle to edit_ANS_Ainj2 (see GCBO) 0305 % eventdata reserved - to be defined in a future version of MATLAB 0306 % handles empty - handles not created until after all CreateFcns called 0307 0308 % Hint: edit controls usually have a white background on Windows. 0309 % See ISPC and COMPUTER. 0310 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0311 set(hObject,'BackgroundColor','white'); 0312 end 0313 0314 0315 0316 function edit_ANS_C01_Callback(hObject, eventdata, handles) 0317 % hObject handle to edit_ANS_C01 (see GCBO) 0318 % eventdata reserved - to be defined in a future version of MATLAB 0319 % handles structure with handles and user data (see GUIDATA) 0320 0321 % Hints: get(hObject,'String') returns contents of edit_ANS_C01 as text 0322 % str2double(get(hObject,'String')) returns contents of edit_ANS_C01 as a double 0323 0324 0325 % --- Executes during object creation, after setting all properties. 0326 function edit_ANS_C01_CreateFcn(hObject, eventdata, handles) 0327 % hObject handle to edit_ANS_C01 (see GCBO) 0328 % eventdata reserved - to be defined in a future version of MATLAB 0329 % handles empty - handles not created until after all CreateFcns called 0330 0331 % Hint: edit controls usually have a white background on Windows. 0332 % See ISPC and COMPUTER. 0333 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0334 set(hObject,'BackgroundColor','white'); 0335 end 0336 0337 0338 0339 function edit_ANS_C03_Callback(hObject, eventdata, handles) 0340 % hObject handle to edit_ANS_C03 (see GCBO) 0341 % eventdata reserved - to be defined in a future version of MATLAB 0342 % handles structure with handles and user data (see GUIDATA) 0343 0344 % Hints: get(hObject,'String') returns contents of edit_ANS_C03 as text 0345 % str2double(get(hObject,'String')) returns contents of edit_ANS_C03 as a double 0346 0347 0348 % --- Executes during object creation, after setting all properties. 0349 function edit_ANS_C03_CreateFcn(hObject, eventdata, handles) 0350 % hObject handle to edit_ANS_C03 (see GCBO) 0351 % eventdata reserved - to be defined in a future version of MATLAB 0352 % handles empty - handles not created until after all CreateFcns called 0353 0354 % Hint: edit controls usually have a white background on Windows. 0355 % See ISPC and COMPUTER. 0356 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0357 set(hObject,'BackgroundColor','white'); 0358 end 0359 0360 0361 0362 function edit_ANS_C05_Callback(hObject, eventdata, handles) 0363 % hObject handle to edit_ANS_C05 (see GCBO) 0364 % eventdata reserved - to be defined in a future version of MATLAB 0365 % handles structure with handles and user data (see GUIDATA) 0366 0367 % Hints: get(hObject,'String') returns contents of edit_ANS_C05 as text 0368 % str2double(get(hObject,'String')) returns contents of edit_ANS_C05 as a double 0369 0370 0371 % --- Executes during object creation, after setting all properties. 0372 function edit_ANS_C05_CreateFcn(hObject, eventdata, handles) 0373 % hObject handle to edit_ANS_C05 (see GCBO) 0374 % eventdata reserved - to be defined in a future version of MATLAB 0375 % handles empty - handles not created until after all CreateFcns called 0376 0377 % Hint: edit controls usually have a white background on Windows. 0378 % See ISPC and COMPUTER. 0379 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0380 set(hObject,'BackgroundColor','white'); 0381 end 0382 0383 0384 0385 function edit_ANS_C07_Callback(hObject, eventdata, handles) 0386 % hObject handle to edit_ANS_C07 (see GCBO) 0387 % eventdata reserved - to be defined in a future version of MATLAB 0388 % handles structure with handles and user data (see GUIDATA) 0389 0390 % Hints: get(hObject,'String') returns contents of edit_ANS_C07 as text 0391 % str2double(get(hObject,'String')) returns contents of edit_ANS_C07 as a double 0392 0393 0394 % --- Executes during object creation, after setting all properties. 0395 function edit_ANS_C07_CreateFcn(hObject, eventdata, handles) 0396 % hObject handle to edit_ANS_C07 (see GCBO) 0397 % eventdata reserved - to be defined in a future version of MATLAB 0398 % handles empty - handles not created until after all CreateFcns called 0399 0400 % Hint: edit controls usually have a white background on Windows. 0401 % See ISPC and COMPUTER. 0402 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0403 set(hObject,'BackgroundColor','white'); 0404 end 0405 0406 0407 0408 function edit_ANS_C09_Callback(hObject, eventdata, handles) 0409 % hObject handle to edit_ANS_C09 (see GCBO) 0410 % eventdata reserved - to be defined in a future version of MATLAB 0411 % handles structure with handles and user data (see GUIDATA) 0412 0413 % Hints: get(hObject,'String') returns contents of edit_ANS_C09 as text 0414 % str2double(get(hObject,'String')) returns contents of edit_ANS_C09 as a double 0415 0416 0417 % --- Executes during object creation, after setting all properties. 0418 function edit_ANS_C09_CreateFcn(hObject, eventdata, handles) 0419 % hObject handle to edit_ANS_C09 (see GCBO) 0420 % eventdata reserved - to be defined in a future version of MATLAB 0421 % handles empty - handles not created until after all CreateFcns called 0422 0423 % Hint: edit controls usually have a white background on Windows. 0424 % See ISPC and COMPUTER. 0425 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0426 set(hObject,'BackgroundColor','white'); 0427 end 0428 0429 0430 0431 function edit_ANS_C11_Callback(hObject, eventdata, handles) 0432 % hObject handle to edit_ANS_C11 (see GCBO) 0433 % eventdata reserved - to be defined in a future version of MATLAB 0434 % handles structure with handles and user data (see GUIDATA) 0435 0436 % Hints: get(hObject,'String') returns contents of edit_ANS_C11 as text 0437 % str2double(get(hObject,'String')) returns contents of edit_ANS_C11 as a double 0438 0439 0440 % --- Executes during object creation, after setting all properties. 0441 function edit_ANS_C11_CreateFcn(hObject, eventdata, handles) 0442 % hObject handle to edit_ANS_C11 (see GCBO) 0443 % eventdata reserved - to be defined in a future version of MATLAB 0444 % handles empty - handles not created until after all CreateFcns called 0445 0446 % Hint: edit controls usually have a white background on Windows. 0447 % See ISPC and COMPUTER. 0448 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0449 set(hObject,'BackgroundColor','white'); 0450 end 0451 0452 0453 0454 function edit_ANS_C13_Callback(hObject, eventdata, handles) 0455 % hObject handle to edit_ANS_C13 (see GCBO) 0456 % eventdata reserved - to be defined in a future version of MATLAB 0457 % handles structure with handles and user data (see GUIDATA) 0458 0459 % Hints: get(hObject,'String') returns contents of edit_ANS_C13 as text 0460 % str2double(get(hObject,'String')) returns contents of edit_ANS_C13 as a double 0461 0462 0463 % --- Executes during object creation, after setting all properties. 0464 function edit_ANS_C13_CreateFcn(hObject, eventdata, handles) 0465 % hObject handle to edit_ANS_C13 (see GCBO) 0466 % eventdata reserved - to be defined in a future version of MATLAB 0467 % handles empty - handles not created until after all CreateFcns called 0468 0469 % Hint: edit controls usually have a white background on Windows. 0470 % See ISPC and COMPUTER. 0471 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0472 set(hObject,'BackgroundColor','white'); 0473 end 0474 0475 0476 0477 function edit_ANS_C15_Callback(hObject, eventdata, handles) 0478 % hObject handle to edit_ANS_C15 (see GCBO) 0479 % eventdata reserved - to be defined in a future version of MATLAB 0480 % handles structure with handles and user data (see GUIDATA) 0481 0482 % Hints: get(hObject,'String') returns contents of edit_ANS_C15 as text 0483 % str2double(get(hObject,'String')) returns contents of edit_ANS_C15 as a double 0484 0485 0486 % --- Executes during object creation, after setting all properties. 0487 function edit_ANS_C15_CreateFcn(hObject, eventdata, handles) 0488 % hObject handle to edit_ANS_C15 (see GCBO) 0489 % eventdata reserved - to be defined in a future version of MATLAB 0490 % handles empty - handles not created until after all CreateFcns called 0491 0492 % Hint: edit controls usually have a white background on Windows. 0493 % See ISPC and COMPUTER. 0494 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0495 set(hObject,'BackgroundColor','white'); 0496 end 0497 0498 0499 0500 function edit_ANS_SDC_Callback(hObject, eventdata, handles) 0501 % hObject handle to edit_ANS_SDC (see GCBO) 0502 % eventdata reserved - to be defined in a future version of MATLAB 0503 % handles structure with handles and user data (see GUIDATA) 0504 0505 % Hints: get(hObject,'String') returns contents of edit_ANS_SDC as text 0506 % str2double(get(hObject,'String')) returns contents of edit_ANS_SDC as a double 0507 0508 0509 % --- Executes during object creation, after setting all properties. 0510 function edit_ANS_SDC_CreateFcn(hObject, eventdata, handles) 0511 % hObject handle to edit_ANS_SDC (see GCBO) 0512 % eventdata reserved - to be defined in a future version of MATLAB 0513 % handles empty - handles not created until after all CreateFcns called 0514 0515 % Hint: edit controls usually have a white background on Windows. 0516 % See ISPC and COMPUTER. 0517 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0518 set(hObject,'BackgroundColor','white'); 0519 end 0520 0521 0522 0523 function edit_LIN_spm_Callback(hObject, eventdata, handles) 0524 % hObject handle to edit_LIN_spm (see GCBO) 0525 % eventdata reserved - to be defined in a future version of MATLAB 0526 % handles structure with handles and user data (see GUIDATA) 0527 0528 % Hints: get(hObject,'String') returns contents of edit_LIN_spm as text 0529 % str2double(get(hObject,'String')) returns contents of edit_LIN_spm as a double 0530 0531 0532 % --- Executes during object creation, after setting all properties. 0533 function edit_LIN_spm_CreateFcn(hObject, eventdata, handles) 0534 % hObject handle to edit_LIN_spm (see GCBO) 0535 % eventdata reserved - to be defined in a future version of MATLAB 0536 % handles empty - handles not created until after all CreateFcns called 0537 0538 % Hint: edit controls usually have a white background on Windows. 0539 % See ISPC and COMPUTER. 0540 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) 0541 set(hObject,'BackgroundColor','white'); 0542 end 0543 0544 0545 % --- Executes on button press in pushbutton_lt1_reset_Update. 0546 function pushbutton_Update_Callback(hObject, eventdata, handles) 0547 % hObject handle to pushbutton_lt1_reset_Update (see GCBO) 0548 % eventdata reserved - to be defined in a future version of MATLAB 0549 % handles structure with handles and user data (see GUIDATA) 0550 0551 0552 r=tango_command_inout2('ANS/SY/LOCAL.SDC.1', 'Update');retour_update('ANS/SY/LOCAL.SDC.1',r); 0553 r=tango_command_inout2('LIN/SY/LOCAL.LPM.1','Update');retour_update('LIN/SY/LOCAL.LPM.1',r); 0554 r=tango_command_inout2('LIN/SY/LOCAL.SPM.1','Update');retour_update('LIN/SY/LOCAL.SPM.1',r); 0555 0556 r=tango_command_inout2('BOO/SY/LOCAL.Binj.1', 'Update'); retour_update('BOO/SY/LOCAL.Binj.1',r); 0557 r=tango_command_inout2('BOO/SY/LOCAL.Alim.1', 'Update'); retour_update('BOO/SY/LOCAL.Alim.1',r); 0558 r=tango_command_inout2('BOO/SY/LOCAL.RF.1', 'Update'); retour_update('BOO/SY/LOCAL.RF.1',r); 0559 r=tango_command_inout2('BOO/SY/LOCAL.DG.1', 'Update');retour_update('BOO/SY/LOCAL.DG.1',r); 0560 r=tango_command_inout2('BOO/SY/LOCAL.DG.2', 'Update');retour_update('BOO/SY/LOCAL.DG.2',r); 0561 r=tango_command_inout2('BOO/SY/LOCAL.DG.3', 'Update');retour_update('BOO/SY/LOCAL.DG.3',r); 0562 r=tango_command_inout2('BOO/SY/LOCAL.Bext.1', 'Update');retour_update('BOO/SY/LOCAL.Bext.1',r); 0563 0564 r=tango_command_inout2('LT2/SY/LOCAL.DG.1', 'Update');retour_update('LT2/SY/LOCAL.DG.1',r); 0565 r=tango_command_inout2('LT2/SY/LOCAL.DG.2', 'Update');retour_update('LT2/SY/LOCAL.DG.2',r); 0566 0567 r=tango_command_inout2('ANS-C01/SY/LOCAL.Ainj.1', 'Update');retour_update('ANS-C01/SY/LOCAL.Ainj.1',r); 0568 r=tango_command_inout2('ANS-C01/SY/LOCAL.Ainj.2', 'Update');retour_update('ANS-C01/SY/LOCAL.Ainj.2',r); 0569 r=tango_command_inout2('ANS-C01/SY/LOCAL.DG.2', 'Update');retour_update('ANS-C01/SY/LOCAL.DG.2',r); 0570 r=tango_command_inout2('ANS-C03/SY/LOCAL.DG.1', 'Update');retour_update('ANS-C03/SY/LOCAL.DG.1',r); 0571 r=tango_command_inout2('ANS-C05/SY/LOCAL.DG.1', 'Update');retour_update('ANS-C05/SY/LOCAL.DG.1',r); 0572 r=tango_command_inout2('ANS-C07/SY/LOCAL.DG.1', 'Update');retour_update('ANS-C07/SY/LOCAL.DG.1',r); 0573 r=tango_command_inout2('ANS-C09/SY/LOCAL.DG.1', 'Update');retour_update('ANS-C09/SY/LOCAL.DG.1',r); 0574 r=tango_command_inout2('ANS-C11/SY/LOCAL.DG.1', 'Update');retour_update('ANS-C11/SY/LOCAL.DG.1',r); 0575 r=tango_command_inout2('ANS-C13/SY/LOCAL.DG.1', 'Update');retour_update('ANS-C13/SY/LOCAL.DG.1',r); 0576 r=tango_command_inout2('ANS-C15/SY/LOCAL.DG.1', 'Update'); retour_update('ANS-C15/SY/LOCAL.DG.1',r); 0577 r=tango_command_inout2('ANS/SY/LOCAL.SDC.1', 'Update');retour_update('ANS/SY/LOCAL.SDC.1',r); 0578 0579 r=tango_command_inout2('LT1/SY/LOCAL.DG.1', 'Update');retour_update('BOO/SY/LOCAL.DG.1',r); 0580 0581 % --- Executes on button press in pushbutton_lt1_reset_special. 0582 function pushbutton_special_Callback(hObject, eventdata, handles) 0583 % hObject handle to pushbutton_lt1_reset_special (see GCBO) 0584 % eventdata reserved - to be defined in a future version of MATLAB 0585 % handles structure with handles and user data (see GUIDATA) 0586 0587 0588 event=int32(1); 0589 att ='libre.1Event'; 0590 tango_write_attribute2('ANS/SY/LOCAL.SDC.1',att,event); 0591 tango_write_attribute2('BOO/SY/LOCAL.Binj.1',att,event); 0592 tango_write_attribute2('BOO/SY/LOCAL.RF.1',att,event); 0593 tango_write_attribute2('BOO/SY/LOCAL.DG.3',att,event); 0594 tango_write_attribute2('BOO/SY/LOCAL.Bext.1',att,event); 0595 tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.1',att,event); 0596 tango_write_attribute2('ANS-C01/SY/LOCAL.Ainj.2',att,event); 0597 tango_write_attribute2('ANS-C16/SY/LOCAL.DG.1',att,event); 0598 att ='spareEvent'; 0599 tango_write_attribute2('ANS-C02/SY/LOCAL.DG.1',att,event); 0600 tango_write_attribute2('ANS-C04/SY/LOCAL.DG.1',att,event); 0601 tango_write_attribute2('ANS-C06/SY/LOCAL.DG.1',att,event); 0602 tango_write_attribute2('ANS-C08/SY/LOCAL.DG.1',att,event); 0603 tango_write_attribute2('ANS-C10/SY/LOCAL.DG.1',att,event); 0604 tango_write_attribute2('ANS-C12/SY/LOCAL.DG.1',att,event); 0605 0606 0607 % --- Executes on button press in pushbutton_lt1_reset_lin1_reset. 0608 function pushbutton_lin1_reset_Callback(hObject, eventdata, handles) 0609 % hObject handle to pushbutton_lt1_reset_lin1_reset (see GCBO) 0610 % eventdata reserved - to be defined in a future version of MATLAB 0611 % handles structure with handles and user data (see GUIDATA) 0612 0613 tango_command_inout2('LIN/SY/LOCAL.SPM.1','Reset') 0614 0615 % --- Executes on button press in pushbutton_lt1_reset_lin1_update. 0616 function pushbutton_lin1_update_Callback(hObject, eventdata, handles) 0617 % hObject handle to pushbutton_lt1_reset_lin1_update (see GCBO) 0618 % eventdata reserved - to be defined in a future version of MATLAB 0619 % handles structure with handles and user data (see GUIDATA) 0620 0621 tango_command_inout2('LIN/SY/LOCAL.SPM.1','Update') 0622 0623 % --- Executes on button press in pushbutton_lt1_reset_lin1_atk. 0624 function pushbutton_lin1_atk_Callback(hObject, eventdata, handles) 0625 % hObject handle to pushbutton_lt1_reset_lin1_atk (see GCBO) 0626 % eventdata reserved - to be defined in a future version of MATLAB 0627 % handles structure with handles and user data (see GUIDATA) 0628 0629 system('atkpanel LIN/SY/LOCAL.SPM.1 &') 0630 0631 0632 % --- Executes on button press in pushbutton_lt1_reset. 0633 function pushbutton_lt1_reset_Callback(hObject, eventdata, handles) 0634 % hObject handle to pushbutton_lt1_reset (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 tango_command_inout2('LT1/SY/LOCAL.DG.1', 'Reset') 0639 %tango_command_inout2('LIN/SY/LOCAL.LPM.1','Reset') 0640 0641 % --- Executes on button press in pushbutton_lt1_update. 0642 function pushbutton_lt1_update_Callback(hObject, eventdata, handles) 0643 % hObject handle to pushbutton_lt1_update (see GCBO) 0644 % eventdata reserved - to be defined in a future version of MATLAB 0645 % handles structure with handles and user data (see GUIDATA) 0646 0647 tango_command_inout2('LT1/SY/LOCAL.DG.1', 'Update') 0648 tango_command_inout2('LIN/SY/LOCAL.LPM.1','Update') 0649 0650 % --- Executes on button press in pushbutton_lt1_atk. 0651 function pushbutton_lt1_atk_Callback(hObject, eventdata, handles) 0652 % hObject handle to pushbutton_lt1_atk (see GCBO) 0653 % eventdata reserved - to be defined in a future version of MATLAB 0654 % handles structure with handles and user data (see GUIDATA) 0655 0656 system('atkpanel LIN/SY/LOCAL.LPM.1 &') 0657 system('atkpanel LT1/SY/LOCAL.DG.1 &') 0658 0659 0660 % --- Executes on button press in pushbutton_boo_binj_reset. 0661 function pushbutton_boo_binj_reset_Callback(hObject, eventdata, handles) 0662 % hObject handle to pushbutton_boo_binj_reset (see GCBO) 0663 % eventdata reserved - to be defined in a future version of MATLAB 0664 % handles structure with handles and user data (see GUIDATA) 0665 0666 tango_command_inout2('BOO/SY/LOCAL.Binj.1', 'Reset') 0667 %tango_command_inout2('BOO/SY/LOCAL.DG.1', 'Reset') 0668 0669 % --- Executes on button press in pushbutton_boo_binj_update. 0670 function pushbutton_boo_binj_update_Callback(hObject, eventdata, handles) 0671 % hObject handle to pushbutton_boo_binj_update (see GCBO) 0672 % eventdata reserved - to be defined in a future version of MATLAB 0673 % handles structure with handles and user data (see GUIDATA) 0674 0675 tango_command_inout2('BOO/SY/LOCAL.Binj.1', 'Update') 0676 tango_command_inout2('BOO/SY/LOCAL.DG.1', 'Update') 0677 0678 % --- Executes on button press in pushbutton_boo_binj_atk. 0679 function pushbutton_boo_binj_atk_Callback(hObject, eventdata, handles) 0680 % hObject handle to pushbutton_boo_binj_atk (see GCBO) 0681 % eventdata reserved - to be defined in a future version of MATLAB 0682 % handles structure with handles and user data (see GUIDATA) 0683 0684 system('atkpanel BOO/SY/LOCAL.DG.1 &') 0685 system('atkpanel BOO/SY/LOCAL.Binj.1 &') 0686 0687 % --- Executes on button press in pushbutton_boo_alim_reset. 0688 function pushbutton_boo_alim_reset_Callback(hObject, eventdata, handles) 0689 % hObject handle to pushbutton_boo_alim_reset (see GCBO) 0690 % eventdata reserved - to be defined in a future version of MATLAB 0691 % handles structure with handles and user data (see GUIDATA) 0692 0693 tango_command_inout2('BOO/SY/LOCAL.Alim.1', 'Reset') 0694 %tango_command_inout2('BOO/SY/LOCAL.RF.1', 'Reset') 0695 0696 % --- Executes on button press in pushbutton_boo_alim_update. 0697 function pushbutton_boo_alim_update_Callback(hObject, eventdata, handles) 0698 % hObject handle to pushbutton_boo_alim_update (see GCBO) 0699 % eventdata reserved - to be defined in a future version of MATLAB 0700 % handles structure with handles and user data (see GUIDATA) 0701 0702 tango_command_inout2('BOO/SY/LOCAL.Alim.1', 'Update') 0703 tango_command_inout2('BOO/SY/LOCAL.RF.1', 'Update') 0704 0705 % --- Executes on button press in pushbutton_boo_alim_atk. 0706 function pushbutton_boo_alim_atk_Callback(hObject, eventdata, handles) 0707 % hObject handle to pushbutton_boo_alim_atk (see GCBO) 0708 % eventdata reserved - to be defined in a future version of MATLAB 0709 % handles structure with handles and user data (see GUIDATA) 0710 0711 system('atkpanel BOO/SY/LOCAL.Alim.1 &') 0712 system('atkpanel BOO/SY/LOCAL.RF.1 &') 0713 0714 0715 % --- Executes on button press in pushbutton_boo_dg3_reset. 0716 function pushbutton_boo_dg3_reset_Callback(hObject, eventdata, handles) 0717 % hObject handle to pushbutton_boo_dg3_reset (see GCBO) 0718 % eventdata reserved - to be defined in a future version of MATLAB 0719 % handles structure with handles and user data (see GUIDATA) 0720 0721 tango_command_inout2('BOO/SY/LOCAL.DG.3', 'Reset') 0722 0723 % --- Executes on button press in pushbutton_boo_dg3_update. 0724 function pushbutton_boo_dg3_update_Callback(hObject, eventdata, handles) 0725 % hObject handle to pushbutton_boo_dg3_update (see GCBO) 0726 % eventdata reserved - to be defined in a future version of MATLAB 0727 % handles structure with handles and user data (see GUIDATA) 0728 0729 tango_command_inout2('BOO/SY/LOCAL.DG.3', 'Update') 0730 0731 % --- Executes on button press in pushbutton_boo_dg3_atk. 0732 function pushbutton_boo_dg3_atk_Callback(hObject, eventdata, handles) 0733 % hObject handle to pushbutton_boo_dg3_atk (see GCBO) 0734 % eventdata reserved - to be defined in a future version of MATLAB 0735 % handles structure with handles and user data (see GUIDATA) 0736 0737 system('atkpanel BOO/SY/LOCAL.DG.3 &') 0738 0739 % --- Executes on button press in pushbutton_boo_bext_reset. 0740 function pushbutton_boo_bext_reset_Callback(hObject, eventdata, handles) 0741 % hObject handle to pushbutton_boo_bext_reset (see GCBO) 0742 % eventdata reserved - to be defined in a future version of MATLAB 0743 % handles structure with handles and user data (see GUIDATA) 0744 0745 tango_command_inout2('BOO/SY/LOCAL.Bext.1', 'Reset') 0746 0747 % --- Executes on button press in pushbutton_boo_bext_update. 0748 function pushbutton_boo_bext_update_Callback(hObject, eventdata, handles) 0749 % hObject handle to pushbutton_boo_bext_update (see GCBO) 0750 % eventdata reserved - to be defined in a future version of MATLAB 0751 % handles structure with handles and user data (see GUIDATA) 0752 0753 tango_command_inout2('BOO/SY/LOCAL.Bext.1', 'Update') 0754 tango_command_inout2('BOO/SY/LOCAL.DG.2', 'Update') 0755 0756 % --- Executes on button press in pushbutton_boo_bext_atk. 0757 function pushbutton_boo_bext_atk_Callback(hObject, eventdata, handles) 0758 % hObject handle to pushbutton_boo_bext_atk (see GCBO) 0759 % eventdata reserved - to be defined in a future version of MATLAB 0760 % handles structure with handles and user data (see GUIDATA) 0761 0762 system('atkpanel BOO/SY/LOCAL.Bext.1 &') 0763 system('atkpanel BOO/SY/LOCAL.DG.2 &') 0764 0765 % --- Executes on button press in pushbutton_ans_ainj_reset. 0766 function pushbutton_ans_ainj_reset_Callback(hObject, eventdata, handles) 0767 % hObject handle to pushbutton_ans_ainj_reset (see GCBO) 0768 % eventdata reserved - to be defined in a future version of MATLAB 0769 % handles structure with handles and user data (see GUIDATA) 0770 0771 tango_command_inout2('ANS-C01/SY/LOCAL.Ainj.1', 'Reset') 0772 0773 % --- Executes on button press in pushbutton_ans_ainj_update. 0774 function pushbutton_ans_ainj_update_Callback(hObject, eventdata, handles) 0775 % hObject handle to pushbutton_ans_ainj_update (see GCBO) 0776 % eventdata reserved - to be defined in a future version of MATLAB 0777 % handles structure with handles and user data (see GUIDATA) 0778 0779 tango_command_inout2('ANS-C01/SY/LOCAL.Ainj.1', 'Update') 0780 tango_command_inout2('ANS-C01/SY/LOCAL.DG.1', 'Update') 0781 0782 % --- Executes on button press in pushbutton_ans_ainj_atk. 0783 function pushbutton_ans_ainj_atk_Callback(hObject, eventdata, handles) 0784 % hObject handle to pushbutton_ans_ainj_atk (see GCBO) 0785 % eventdata reserved - to be defined in a future version of MATLAB 0786 % handles structure with handles and user data (see GUIDATA) 0787 0788 system('atkpanel ANS-C01/SY/LOCAL.Ainj.1 &') 0789 system('atkpanel ANS-C01/SY/LOCAL.DG.1 &') 0790 0791 % --- Executes on button press in pushbutton_ans_ainj2_reset. 0792 function pushbutton_ans_ainj2_reset_Callback(hObject, eventdata, handles) 0793 % hObject handle to pushbutton_ans_ainj2_reset (see GCBO) 0794 % eventdata reserved - to be defined in a future version of MATLAB 0795 % handles structure with handles and user data (see GUIDATA) 0796 0797 tango_command_inout2('ANS-C01/SY/LOCAL.Ainj.2', 'Reset') 0798 0799 0800 % --- Executes on button press in pushbutton26. 0801 function pushbutton26_Callback(hObject, eventdata, handles) 0802 % hObject handle to pushbutton26 (see GCBO) 0803 % eventdata reserved - to be defined in a future version of MATLAB 0804 % handles structure with handles and user data (see GUIDATA) 0805 0806 tango_command_inout2('ANS-C01/SY/LOCAL.Ainj.2', 'Update') 0807 tango_command_inout2('ANS-C01/SY/LOCAL.DG.2', 'Update') 0808 0809 % --- Executes on button press in pushbutton_ans_ainj2_atk. 0810 function pushbutton_ans_ainj2_atk_Callback(hObject, eventdata, handles) 0811 % hObject handle to pushbutton_ans_ainj2_atk (see GCBO) 0812 % eventdata reserved - to be defined in a future version of MATLAB 0813 % handles structure with handles and user data (see GUIDATA) 0814 0815 system('atkpanel ANS-C01/SY/LOCAL.Ainj.2 &') 0816 system('atkpanel ANS-C01/SY/LOCAL.DG.2 &') 0817 0818 % --- Executes on button press in pushbutton_ans_ainj2_update. 0819 function pushbutton_ans_ainj2_update_Callback(hObject, eventdata, handles) 0820 % hObject handle to pushbutton_ans_ainj2_update (see GCBO) 0821 % eventdata reserved - to be defined in a future version of MATLAB 0822 % handles structure with handles and user data (see GUIDATA) 0823 0824