function varargout = PID_cc_gain_effects(varargin)
% PID_CC_GAIN_EFFECTS M-file for PID_cc_gain_effects.fig
% PID_CC_GAIN_EFFECTS, by itself, creates a new PID_CC_GAIN_EFFECTS or raises the existing
% singleton*.
%
% H = PID_CC_GAIN_EFFECTS returns the handle to a new
% PID_CC_GAIN_EFFECTS or the handle to
% the existing singleton*.
%
% PID_CC_GAIN_EFFECTS('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in PID_CC_GAIN_EFFECTS.M with the given input arguments.
%
% PID_CC_GAIN_EFFECTS('Property','Value',...) creates a new PID_CC_GAIN_EFFECTS or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before PID_cc_gain_effects_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to PID_cc_gain_effects_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
% Edit the above text to modify the response to help PID_cc_gain_effects
% Last Modified by GUIDE v2.5 30-Jan-2013 15:32:00
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @PID_cc_gain_effects_OpeningFcn, ...
'gui_OutputFcn', @PID_cc_gain_effects_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before PID_cc_gain_effects is made visible.
function PID_cc_gain_effects_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to PID_cc_gain_effects (see VARARGIN)
% Choose default command line output for PID_cc_gain_effects
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes PID_cc_gain_effects wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = PID_cc_gain_effects_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
%global run_multiple_simulation simulation_counter
function i_gain_Callback(hObject, eventdata, handles)
% hObject handle to i_gain (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 i_gain as text
% str2double(get(hObject,'String')) returns contents of i_gain as a double
% --- Executes during object creation, after setting all properties.
function i_gain_CreateFcn(hObject, eventdata, handles)
% hObject handle to i_gain (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function p_gain_Callback(hObject, eventdata, handles)
% hObject handle to p_gain (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 p_gain as text
% str2double(get(hObject,'String')) returns contents of p_gain as a double
% --- Executes during object creation, after setting all properties.
function p_gain_CreateFcn(hObject, eventdata, handles)
% hObject handle to p_gain (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function d_gain_Callback(hObject, eventdata, handles)
% hObject handle to d_gain (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 d_gain as text
% str2double(get(hObject,'String')) returns contents of d_gain as a double
% --- Executes during object creation, after setting all properties.
function d_gain_CreateFcn(hObject, eventdata, handles)
% hObject handle to d_gain (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function cntrlr_intigration_init_Callback(hObject, eventdata, handles)
% hObject handle to cntrlr_intigration_init (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 cntrlr_intigration_init as text
% str2double(get(hObject,'String')) returns contents of cntrlr_intigration_init as a double
% --- Executes during object creation, after setting all properties.
function cntrlr_intigration_init_CreateFcn(hObject, eventdata, handles)
% hObject handle to cntrlr_intigration_init (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function vech_mass_Callback(hObject, eventdata, handles)
% hObject handle to vech_mass (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 vech_mass as text
% str2double(get(hObject,'String')) returns contents of vech_mass as a double
% --- Executes during object creation, after setting all properties.
function vech_mass_CreateFcn(hObject, eventdata, handles)
% hObject handle to vech_mass (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function gear_pos_Callback(hObject, eventdata, handles)
% hObject handle to gear_pos (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 gear_pos as text
% str2double(get(hObject,'String')) returns contents of gear_pos as a double
% --- Executes during object creation, after setting all properties.
function gear_pos_CreateFcn(hObject, eventdata, handles)
% hObject handle to gear_pos (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function slope_Callback(hObject, eventdata, handles)
% hObject handle to slope (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 slope as text
% str2double(get(hObject,'String')) returns contents of slope as a double
% --- Executes during object creation, after setting all properties.
function slope_CreateFcn(hObject, eventdata, handles)
% hObject handle to slope (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function ref_speed_Callback(hObject, eventdata, handles)
% hObject handle to ref_speed (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 ref_speed as text
% str2double(get(hObject,'String')) returns contents of ref_speed as a double
% --- Executes during object creation, after setting all properties.
function ref_speed_CreateFcn(hObject, eventdata, handles)
% hObject handle to ref_speed (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in activate_gains.
function activate_gains_Callback(hObject, eventdata, handles)
% hObject handle to activate_gains (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
%global run_multiple_simulation simulation_counter;
% run_multi_sim = 1;
% sim_cntr = 1;
% assignin('base','run_multiple_simulation',run_multi_sim);
% assignin('base','simulation_counter',sim_cntr);
global run_multiple_simulation simulation_counter
simulation_counter = 1;
run_multiple_simulation = get(hObject,'Value');
% --- Executes on button press in run_simulation.
function run_simulation_Callback(hObject, eventdata, handles)
% hObject handle to run_simulation (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
gain_I = str2num(get(handles.i_gain, 'String'));
gain_P = str2num(get(handles.p_gain, 'String'));
gain_D = str2num(get(handles.d_gain, 'String'));
Init_intgration_block = str2num(get(handles.cntrlr_intigration_init, 'String'));
Mass = str2num(get(handles.vech_mass, 'String'));
Gear = str2num(get(handles.gear_pos, 'String'));
Slope = str2num(get(handles.slope, 'String'));
RefSpeed = str2num(get(handles.ref_speed, 'String'));
TgtSpeed = str2num(get(handles.tgt_spd, 'String'));
stoptime = str2num(get(handles.t_stop, 'String'));
options=simset('SrcWorkspace','base','DstWorkspace','base');
assignin('base','Init_C',Init_intgration_block);
assignin('base','intg_gain',gain_I);
assignin('base','prop_gain',gain_P);
assignin('base','deriv_gain',gain_D);
assignin('base','vechl_mass',Mass);
assignin('base','gear_pos',Gear);
assignin('base','slope_rad',Slope);
assignin('base','ref_spd',RefSpeed);
assignin('base','final_spd',TgtSpeed);
%sim('cruise_pid_testing',[0 stoptime],options)
%I_gain = str2num(get(handles.i_set1, 'String'));
%P_gain = str2num(get(handles.p_set1, 'String'));
%D_gain = str2num(get(handles.d_set3, 'String'));
%gain_I1 = str2num(get(handles.p_set1, 'String'));
%sim('cruise_pid_testing.mdl');
%sim('cruise_pid_testing',options)
%activate_gains
global run_multiple_simulation
gain_I1 = str2num(get(handles.i_set1, 'String'));
gain_P1 = str2num(get(handles.p_set1, 'String'));
gain_D1 = str2num(get(handles.d_set1, 'String'));
gain_I2 = str2num(get(handles.i_set2, 'String'));
gain_P2 = str2num(get(handles.p_set2, 'String'));
gain_D2 = str2num(get(handles.d_set2, 'String'));
gain_I3 = str2num(get(handles.i_set3, 'String'));
gain_P3 = str2num(get(handles.p_set3, 'String'));
gain_D3 = str2num(get(handles.d_set3, 'String'));
gain_I4 = str2num(get(handles.i_set4, 'String'));
gain_P4 = str2num(get(handles.p_set4, 'String'));
gain_D4 = str2num(get(handles.d_set4, 'String'));
gain_I5 = str2num(get(handles.i_set5, 'String'));
gain_P5 = str2num(get(handles.p_set5, 'String'));
gain_D5 = str2num(get(handles.d_set5, 'String'));
gainI_multi = [gain_I1 gain_I2 gain_I3 gain_I4 gain_I5];
gainP_multi = [gain_P1 gain_P2 gain_P3 gain_P4 gain_P5];
gainD_multi = [gain_D1 gain_D2 gain_D3 gain_D4 gain_D5];
%for counter=1:5
if(run_multiple_simulation == 1)
for counter = 1:5
assignin('base','intg_gain',gainI_multi(counter));
assignin('base','prop_gain',gainP_multi(counter));
assignin('base','deriv_gain',gainD_multi(counter));
sim('cruise_pid_testing',[0 stoptime],options)
if(counter == 1)
time1 = evalin('base','time');
vel1 = evalin('base','vel');
assignin('base','sim_time1',time1);
assignin('base','sim_vel1',vel1);
elseif(counter == 2)
time2 = evalin('base','time');
vel2 = evalin('base','vel');
assignin('base','sim_time2',time2);
assignin('base','sim_vel2',vel2);
elseif(counter == 3)
time3 = evalin('base','time');
vel3 = evalin('base','vel');
assignin('base','sim_time3',time3);
assignin('base','sim_vel3',vel3);
elseif(counter == 4)
time4 = evalin('base','time');
vel4 = evalin('base','vel');
assignin('base','sim_time4',time4);
assignin('base','sim_vel4',vel4);
elseif(counter == 5)
time5 = evalin('base','time');
vel5 = evalin('base','vel');
assignin('base','sim_time5',time5);
assignin('base','sim_vel5',vel5);
end
end
total_vel = [evalin('base','sim_vel1') evalin('base','sim_vel2') evalin('base','sim_vel3') evalin('base','sim_vel4') evalin('base','sim_vel5')];
total_time = [evalin('base','sim_time1') evalin('base','sim_time2') evalin('base','sim_time3') evalin('base','sim_time4') evalin('base','sim_time5')];
assignin('base','vel_vect',total_vel);
assignin('base','time_vect',total_time);
plot(handles.axes1,evalin('base','time_vect'),evalin('base','vel_vect'))
set(handles.axes1,'XMinorTick','on')
grid on
else
sim('cruise_pid_testing',[0 stoptime],options)
plot(handles.axes1,evalin('base','time'),evalin('base','vel'))
set(handles.axes1,'XMinorTick','on')
grid on
end
% run_multiple_simulation = 0;
%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Create plot in axes 1
%plot(handles.axes1,evalin('base','time'),evalin('base','vel'))
%set(handles.axes1,'XMinorTick','on')
%grid on
function p_set1_Callback(hObject, eventdata, handles)
% hObject handle to p_set1 (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 p_set1 as text
% str2double(get(hObject,'String')) returns contents of p_set1 as a double
% --- Executes during object creation, after setting all properties.
function p_set1_CreateFcn(hObject, eventdata, handles)
% hObject handle to p_set1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function d_set3_Callback(hObject, eventdata, handles)
% hObject handle to d_set3 (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 d_set3 as text
% str2double(get(hObject,'String')) returns contents of d_set3 as a double
% --- Executes during object creation, after setting all properties.
function d_set3_CreateFcn(hObject, eventdata, handles)
% hObject handle to d_set3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function i_set2_Callback(hObject, eventdata, handles)
% hObject handle to i_set2 (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 i_set2 as text
% str2double(get(hObject,'String')) returns contents of i_set2 as a double
% --- Executes during object creation, after setting all properties.
function i_set2_CreateFcn(hObject, eventdata, handles)
% hObject handle to i_set2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function p_set2_Callback(hObject, eventdata, handles)
% hObject handle to p_set2 (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 p_set2 as text
% str2double(get(hObject,'String')) returns contents of p_set2 as a double
% --- Executes during object creation, after setting all properties.
function p_set2_CreateFcn(hObject, eventdata, handles)
% hObject handle to p_set2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function d_set2_Callback(hObject, eventdata, handles)
% hObject handle to d_set2 (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 d_set2 as text
% str2double(get(hObject,'String')) returns contents of d_set2 as a double
% --- Executes during object creation, after setting all properties.
function d_set2_CreateFcn(hObject, eventdata, handles)
% hObject handle to d_set2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function i_set3_Callback(hObject, eventdata, handles)
% hObject handle to i_set3 (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 i_set3 as text
% str2double(get(hObject,'String')) returns contents of i_set3 as a double
% --- Executes during object creation, after setting all properties.
function i_set3_CreateFcn(hObject, eventdata, handles)
% hObject handle to i_set3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function p_set3_Callback(hObject, eventdata, handles)
% hObject handle to p_set3 (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 p_set3 as text
% str2double(get(hObject,'String')) returns contents of p_set3 as a double
% --- Executes during object creation, after setting all properties.
function p_set3_CreateFcn(hObject, eventdata, handles)
% hObject handle to p_set3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function i_set4_Callback(hObject, eventdata, handles)
% hObject handle to i_set4 (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 i_set4 as text
% str2double(get(hObject,'String')) returns contents of i_set4 as a double
% --- Executes during object creation, after setting all properties.
function i_set4_CreateFcn(hObject, eventdata, handles)
% hObject handle to i_set4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function p_set4_Callback(hObject, eventdata, handles)
% hObject handle to p_set4 (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 p_set4 as text
% str2double(get(hObject,'String')) returns contents of p_set4 as a double
% --- Executes during object creation, after setting all properties.
function p_set4_CreateFcn(hObject, eventdata, handles)
% hObject handle to p_set4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function d_set4_Callback(hObject, eventdata, handles)
% hObject handle to d_set4 (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 d_set4 as text
% str2double(get(hObject,'String')) returns contents of d_set4 as a double
% --- Executes during object creation, after setting all properties.
function d_set4_CreateFcn(hObject, eventdata, handles)
% hObject handle to d_set4 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function i_set5_Callback(hObject, eventdata, handles)
% hObject handle to i_set5 (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 i_set5 as text
% str2double(get(hObject,'String')) returns contents of i_set5 as a double
% --- Executes during object creation, after setting all properties.
function i_set5_CreateFcn(hObject, eventdata, handles)
% hObject handle to i_set5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function p_set5_Callback(hObject, eventdata, handles)
% hObject handle to p_set5 (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 p_set5 as text
% str2double(get(hObject,'String')) returns contents of p_set5 as a double
% --- Executes during object creation, after setting all properties.
function p_set5_CreateFcn(hObject, eventdata, handles)
% hObject handle to p_set5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function d_set5_Callback(hObject, eventdata, handles)
% hObject handle to d_set5 (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 d_set5 as text
% str2double(get(hObject,'String')) returns contents of d_set5 as a double
% --- Executes during object creation, after setting all properties.
function d_set5_CreateFcn(hObject, eventdata, handles)
% hObject handle to d_set5 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function t_stop_Callback(hObject, eventdata, handles)
% hObject handle to t_stop (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 t_stop as text
% str2double(get(hObject,'String')) returns contents of t_stop as a double
% --- Executes during object creation, after setting all properties.
function t_stop_CreateFcn(hObject, eventdata, handles)
% hObject handle to t_stop (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function tgt_spd_Callback(hObject, eventdata, handles)
% hObject handle to tgt_spd (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 tgt_spd as text
% str2double(get(hObject,'String')) returns contents of tgt_spd as a double
% --- Executes during object creation, after setting all properties.
function tgt_spd_CreateFcn(hObject, eventdata, handles)
% hObject handle to tgt_spd (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function i_set1_Callback(hObject, eventdata, handles)
% hObject handle to i_set1 (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 i_set1 as text
% str2double(get(hObject,'String')) returns contents of i_set1 as a double
% --- Executes during object creation, after setting all properties.
function i_set1_CreateFcn(hObject, eventdata, handles)
% hObject handle to i_set1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function d_set1_Callback(hObject, eventdata, handles)
% hObject handle to d_set1 (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 d_set1 as text
% str2double(get(hObject,'String')) returns contents of d_set1 as a double
% --- Executes during object creation, after setting all properties.
function d_set1_CreateFcn(hObject, eventdata, handles)
% hObject handle to d_set1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end