📄 calcul_pidanalogique.m
字号:
% Hint: get(hObject,'Value') returns toggle state of iaeset(handles.ise, 'Value',0);
set(handles.iae, 'Value', 1);
set(handles.itae, 'Value', 0);% --- Executes on button press in itae.function itae_Callback(hObject, eventdata, handles)% hObject handle to itae (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of itaeset(handles.ise, 'Value',0);
set(handles.iae, 'Value', 0);
set(handles.itae, 'Value', 1);% --- Executes during object creation, after setting all properties.function tc_CreateFcn(hObject, eventdata, handles)% hObject handle to tc (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 set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction tc_Callback(hObject, eventdata, handles)% hObject handle to tc (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)tc = str2double(get(hObject, 'String'));
if isnan(tc)
set(hObject, 'String', 0);
errordlg('Input must be a number','Error');
end
data = getappdata(gcbf, 'metricdata');
data.tc = tc;
setappdata(gcbf, 'metricdata', data);
% Hints: get(hObject,'String') returns contents of tc as text% str2double(get(hObject,'String')) returns contents of tc as a double% --- Executes during object creation, after setting all properties.function kc_CreateFcn(hObject, eventdata, handles)% hObject handle to kc (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 set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction kc_Callback(hObject, eventdata, handles)% hObject handle to kc (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 kc as text% str2double(get(hObject,'String')) returns contents of kc as a double% --- Executes during object creation, after setting all properties.function ti_CreateFcn(hObject, eventdata, handles)% hObject handle to ti (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 set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction ti_Callback(hObject, eventdata, handles)% hObject handle to ti (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 ti as text% str2double(get(hObject,'String')) returns contents of ti as a double% --- Executes during object creation, after setting all properties.function td_CreateFcn(hObject, eventdata, handles)% hObject handle to td (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 set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction td_Callback(hObject, eventdata, handles)% hObject handle to td (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 td as text% str2double(get(hObject,'String')) returns contents of td as a double% --- Executes during object creation, after setting all properties.% --- Executes on button press in pid1.function pid1_Callback(hObject, eventdata, handles)% hObject handle to pid1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of pid1
set(handles.ziegler, 'Value', 0);
set(handles.cohen, 'Value', 0);
set(handles.reglab, 'Value', 0);
set(handles.optim, 'Value', 0);
set(handles.imc, 'Value', 0);
set(handles.pid1, 'Value', 1);
set(handles.pid2, 'Value', 0);set(handles.itae, 'visible','off');
set(handles.iae, 'visible','off');
set(handles.ise, 'visible','off');
set(handles.cadreop1, 'visible','off');
set(handles.cadreop2, 'visible','off');
set(handles.cadreop3, 'visible','off');
set(handles.mode, 'visible','off');
set(handles.critere, 'visible','off');
set(handles.opt, 'visible','off');
set(handles.regu, 'visible','off');
set(handles.ass, 'visible','off');
set(handles.tc, 'visible','off');
set(handles.filtre, 'visible','off');
set(handles.cpd, 'visible','on');
set(handles.txi, 'visible','on');
set(handles.tw0, 'visible','on');
set(handles.xi, 'visible','on');
set(handles.w0, 'visible','on');
set(handles.tte, 'visible','on');
set(handles.te, 'visible','on');
set(handles.tpd, 'visible','on');% --- Executes on button press in pid2.function pid2_Callback(hObject, eventdata, handles)% hObject handle to pid2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of pid2
set(handles.ziegler, 'Value', 0);
set(handles.cohen, 'Value', 0);
set(handles.reglab, 'Value', 0);
set(handles.optim, 'Value', 0);
set(handles.imc, 'Value', 0);
set(handles.pid1, 'Value', 0);
set(handles.pid2, 'Value', 1);
set(handles.itae, 'visible','off');
set(handles.iae, 'visible','off');
set(handles.ise, 'visible','off');
set(handles.cadreop1, 'visible','off');
set(handles.cadreop2, 'visible','off');
set(handles.cadreop3, 'visible','off');
set(handles.mode, 'visible','off');
set(handles.critere, 'visible','off');
set(handles.opt, 'visible','off');
set(handles.regu, 'visible','off');
set(handles.ass, 'visible','off');
set(handles.tc, 'visible','off');
set(handles.filtre, 'visible','off');
set(handles.cpd, 'visible','on');
set(handles.txi, 'visible','on');
set(handles.tw0, 'visible','on');
set(handles.xi, 'visible','on');
set(handles.w0, 'visible','on');
set(handles.tte, 'visible','on');
set(handles.te, 'visible','on');
set(handles.tpd, 'visible','on');% --- Executes during object creation, after setting all properties.function w0_CreateFcn(hObject, eventdata, handles)% hObject handle to w0 (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 set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction w0_Callback(hObject, eventdata, handles)% hObject handle to w0 (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 w0 as text% str2double(get(hObject,'String')) returns contents of w0 as a doublew0 = str2double(get(hObject, 'String'));
if isnan(w0)
set(hObject, 'String', 0);
errordlg('Input must be a number','Error');
end
data = getappdata(gcbf, 'metricdata');
data.w0 = w0;
setappdata(gcbf, 'metricdata', data);% --- Executes during object creation, after setting all properties.function te_CreateFcn(hObject, eventdata, handles)% hObject handle to te (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 set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction te_Callback(hObject, eventdata, handles)% hObject handle to te (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 te as text% str2double(get(hObject,'String')) returns contents of te as a doublete = str2double(get(hObject, 'String'));
if isnan(te)
set(hObject, 'String', 0);
errordlg('Input must be a number','Error');
end
data = getappdata(gcbf, 'metricdata');
data.te = te;
setappdata(gcbf, 'metricdata', data);% --- Executes during object creation, after setting all properties.function xi_CreateFcn(hObject, eventdata, handles)% hObject handle to xi (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 set(hObject,'BackgroundColor','white');else set(hObject,'BackgroundColor',get(0,'defaultUicontrolBackgroundColor'));endfunction xi_Callback(hObject, eventdata, handles)% hObject handle to xi (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 xi as text% str2double(get(hObject,'String')) returns contents of xi as a doublexi = str2double(get(hObject, 'String'));
if isnan(xi)
set(hObject, 'String', 0);
errordlg('Input must be a number','Error');
end
data = getappdata(gcbf, 'metricdata');
data.xi = xi;
setappdata(gcbf, 'metricdata', data);% --- Executes on button press in simuler.function simuler_Callback(hObject, eventdata, handles)% hObject handle to simuler (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% --- Executes on button press in pushbutton3.function pushbutton3_Callback(hObject, eventdata, handles)% hObject handle to pushbutton3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -