Commit 06243ba2 authored by Simone Liuzzo's avatar Simone Liuzzo

display text and zero button

parent 7b0d8ebf
......@@ -398,7 +398,7 @@ function pushbutton11_Callback(hObject, eventdata, handles)
% handles structure with handles and user data (see GUIDATA)
global qemb qemres semres
set(handles.statustext,'String','saving errors');
disp('saving errors ...')
qfile=fullfile(qemres.datadir, 'quaderrors.mat');
gfile=fullfile(qemres.datadir, 'gainfit.mat');
ok=(exist(qfile,'file') ~= 2);
......@@ -409,11 +409,13 @@ end
if ok
s=struct('k',qemb(2).kn,'dipdelta',qemb(2).dipdelta,'dxs',qemb(2).dxs); %#ok<NASGU>
save(qfile,'-struct','s');
disp(' -before saving- fit steerers and BPM rotation and gain')
[khrot,khgain,kvrot,kvgain,bhrot,bhgain,bvrot,bvgain]=...
qemguess(qemb(2).at,qemres,...
qemres.resph,semres.respv,semres.resph,qemres.respv); %#ok<ASGLU>
save(gfile,'khrot','khgain','kvrot','kvgain','bhrot','bhgain','bvrot','bvgain');
end
disp('errors saved')
set(handles.statustext,'String','errors saved');
......@@ -461,7 +463,7 @@ global qemb qemres semres
qemb(2).cor(:,2)=load_correction(fullfile(qemres.datadir,'quadcor.dat'),...
qemres.qpcode,qemres.opticsdir);
set(handles.qemdata.cordef,'Enable','On');
set(hObject,'Enable','Off');
%set(hObject,'Enable','Off');
qemb(2)=qempaneldisp(qemres,semres,qemb(2),qemb(1),handles);
set(handles.statustext,'String','correction set to initial');
......@@ -474,7 +476,7 @@ function pushbutton14_Callback(hObject, eventdata, handles)
global qemb qemres semres
qemb(2).cor(:,2)=qemb(1).cor;
set(handles.qemdata.cordef,'Enable','On');
set(hObject,'Enable','Off');
%set(hObject,'Enable','Off');
qemb(2)=qempaneldisp(qemres,semres,qemb(2),qemb(1),handles);
set(handles.statustext,'String','correction set to zero');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment