Commit 3fbdc64d authored by Simone Liuzzo's avatar Simone Liuzzo

name of disp weigth

parent 413dbc0a
......@@ -22,7 +22,7 @@ function varargout = sempanel2(varargin)
% Edit the above text to modify the response to help sempanel2
% Last Modified by GUIDE v2.5 08-Feb-2019 12:20:55
% Last Modified by GUIDE v2.5 11-Feb-2019 11:06:51
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
......@@ -88,8 +88,8 @@ global qemb qemres semres
semres.iaxemz=semloadiax(qemres.datadir);
handles.semdata=sempanelset(qemres.datadir,handles);
A=textscan(fopen(fullfile(qemres.datadir,'skewcor.dat'),'r'),'%s %f','HeaderLines',7); %read from setting manager saved file
qemb(2).skewcor=A{2}; %warning('zero initial skew quadrupoles')
% A=textscan(fopen(fullfile(qemres.datadir,'skewcor.dat'),'r'),'%s %f','HeaderLines',7); %read from setting manager saved file
% qemb(2).skewcor=A{2}; %warning('zero initial skew quadrupoles')
% get value of
semres.neigDipFit=str2double(handles.neigDipFit.String);
......@@ -133,7 +133,7 @@ function pushbutton3_Callback(hObject, eventdata, handles)
% handles structure with handles and user data (see GUIDATA)
global qemb qemres semres
set(handles.statustext,'String','fitting quadrupoles');
semres.wdisp=str2double(get(handles.edit3,'String'));
semres.wdisp=str2double(get(handles.DispFitWeigth,'String'));
if get(handles.AnalyticFitCheck,'Value') == 1
hw=waitbar(0,'Fitting quadrupole rotations (Analytic)...');
else
......@@ -388,19 +388,20 @@ end
function edit3_Callback(hObject, eventdata, handles)
% hObject handle to edit3 (see GCBO)
function DispFitWeigth_Callback(hObject, eventdata, handles)
% hObject handle to DispFitWeigth (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit3 as text
% str2double(get(hObject,'String')) returns contents of edit3 as a double
% Hints: get(hObject,'String') returns contents of DispFitWeigth as text
% str2double(get(hObject,'String')) returns contents of DispFitWeigth as a double
set(handles.statustext,'String',['Disp Weigth set to: ' get(hObject,'String')]);
% --- Executes during object creation, after setting all properties.
% DISPERSION WEIGTH FOR quadrupole FIT
function edit3_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit3 (see GCBO)
function DispFitWeigth_CreateFcn(hObject, eventdata, handles)
% hObject handle to DispFitWeigth (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
......
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