1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
% --- Executes on button press in radiobuttonEnHaut.
function radiobuttonEnHaut_Callback(hObject, eventdata, handles)
% hObject handle to radiobuttonEnHaut (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
if (get(hObject,'Value') == get(hObject,'Max'))
% Radio button is selected-take approriate action
set_param('simulinkstage/Manual Switch','sw',num2str(1));
else
% Radio button is not selected-take approriate action
end
function radioexclu(obj,event)
h=findobj(gcf,'style','radio');
set(h,'value',0);
set(obj,'value',1);
% Hint: get(hObject,'Value') returns toggle state of radiobuttonEnHaut
% --- Executes on button press in radiobuttonEnBas.
function radiobuttonEnBas_Callback(hObject, eventdata, handles)
% hObject handle to radiobuttonEnBas (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
if (get(hObject,'Value') == get(hObject,'Max'))
% Radio button is selected-take approriate action
set_param('simulinkstage/Manual Switch','sw',num2str(0));
else
% Radio button is not selected-take approriate action
end
function radioexclu(obj,event)
h=findobj(gcf,'style','radio');
set(h,'value',0);
set(obj,'value',1);
% Hint: get(hObject,'Value') returns toggle state of radiobuttonEnBas |
Partager