MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE User Manual Page 229

  • Download
  • Add to my manuals
  • Print
  • Page
    / 500
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 228
Callbacks for Specific Components
8-13
if button_state == get(hObject,'Max')
display('down');
elseif button_state == get(hObject,'Min')
display('up');
end
The toggle button’s Value property matches the Min property when the toggle button
is up. The Value changes to the Max value when the toggle button is depressed. This
callback function gets the toggle button’s Value property and then compares it with the
Max and Min properties. If the button is depressed, then the function displays 'down' in
the Command Window. If the button is up, then the function displays 'up'.
Radio Button
This code is an example of a radio button callback function in GUIDE. Associate this
function with the radio button Callback property to make it execute when the end user
clicks on the radio button.
function radiobutton1_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton1 (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 radiobutton1
if (get(hObject,'Value') == get(hObject,'Max'))
display('Selected');
else
display('Not selected');
end
The radio button’s Value property matches the Min property when the radio button is
not selected. The Value changes to the Max value when the radio button is selected. This
callback function gets the radio button’s Value property and then compares it with the
Max and Min properties. If the button is selected, then the function displays 'Selected'
in the Command Window. If the button is not selected, then the function displays 'Not
selected'.
Note Use a button group to manage exclusive selection behavior for radio buttons. See
“Button Group” on page 8-21 for more information.
Page view 228
1 2 ... 224 225 226 227 228 229 230 231 232 233 234 ... 499 500

Comments to this Manuals

No comments

Whirlpool DKU5 541 J C IX podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Piekarniki Whirlpool DKU5 541 J C IX.
Dostarczamy 1 pdf podręczników Whirlpool DKU5 541 J C IX do pobrania za darmo według typów dokumentów: Instrukcja Obsługi






Więcej produktów i instrukcji dla Piekarniki Whirlpool

Modele Rodzaj dokumentu
MAG685RVS/P01 Instrukcja Obsługi   Whirlpool MAG685RVS/P01 Instruction for Use, 20 strony
AKP 102/NB/02 Instrukcja Obsługi   Whirlpool AKP 102/NB/02 Instruction for Use, 11 strony
FKQ 89EL P.20 (K)/HA Instrukcja Obsługi       Whirlpool FK 89EL P.20 X/HA Instruction for Use, 80 strony
SLZK 5690 IN Instrukcja Obsługi   Whirlpool SLZK 5690 IN Instruction for Use, 26 strony
FO 87 C.2/E TD IX Instrukcja Obsługi         Whirlpool FO 87.1/E (AN) Instruction for Use, 82 strony
ACM 405/1 Instrukcja Obsługi    Whirlpool ACM 405/1 Instruction for Use [en] [fr] , 108 strony
ML 99 IX A Instrukcja Obsługi      Whirlpool ML 99 IX A Instruction for Use, 48 strony
7OFK 1049LS X RU/HA Instrukcja Obsługi       Whirlpool 7OFK 1049L X RU/HA Instruction for Use [bg] [el] [it] [ua] , 76 strony
BCG 199D P (MI) Instrukcja Obsługi     Whirlpool BC 199DT P XA Instruction for Use, 68 strony
AKS 368/NE Instrukcja Obsługi   Whirlpool AKS 818/NE Instruction for Use [pt] , 10 strony
AKZM 805/IX Instrukcja Obsługi   Whirlpool AKZM 805/IX Instruction for Use [it] , 25 strony
CP 649 FT.2 Instrukcja Obsługi       Whirlpool CP 649 FT.2 Instruction for Use, 88 strony
FK 1039ELS P.20 X/HA Instrukcja Obsługi       Whirlpool 7OFK 1039EL PX RU/HA Instruction for Use, 64 strony
OS 89D IX /HA Instrukcja Obsługi       Whirlpool OS 89D IX /HA Instruction for Use, 76 strony
ACM 406 Instrukcja Obsługi    Whirlpool ACM 406 Instruction for Use, 63 strony
AKP 407/IX Instrukcja Obsługi   Whirlpool AKP 402/IX Instruction for Use, 12 strony
BMZH 5082 SW Instrukcja Obsługi   Whirlpool AKZ 130 Instruction for Use, 8 strony
AKZM 760/WH Instrukcja Obsługi   Whirlpool AKZM 760/WH Instruction for Use, 25 strony
SIM562B Instrukcja Obsługi   Whirlpool SIM562B Instruction for Use, 12 strony
K6G52S(W)/IL Instrukcja Obsługi   Whirlpool K6G52S(W)/IL Instruction for Use, 16 strony