MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Manual de usuario Pagina 306

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 500
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 305
9 Examples of GUIDE UIs
9-60
Generate callback function prototypes
GUI allows only one instance to run
Open the Simulink Block Diagrams
This example is designed to work with the f14 Simulink model. Because the program
sets parameters and runs the simulation, the f14 model must be open when the UI
is displayed. When the program runs, the model_open local function executes. The
model_open function performs these tasks:
Determines if the model is open (find_system).
Opens the block diagram for the model and the subsystem where the parameters are
being set, if not open already (open_system).
Changes the size of the controller Gain block so it can display the gain value
(set_param).
Brings the UI window forward so it is displayed on top of the Simulink diagrams
(figure).
Sets the block parameters to match the current settings in the UI.
Here is the code for model_open:
function model_open(handles)
if isempty(find_system('Name','f14')),
open_system('f14'); open_system('f14/Controller')
set_param('f14/Controller/Gain','Position',[275 14 340 56])
figure(handles.F14ControllerEditor)
set_param('f14/Controller Gain','Gain',...
get(handles.KfCurrentValue,'String'))
set_param(...
'f14/Controller/Proportional plus integral compensator',...
'Numerator',...
get(handles.KiCurrentValue,'String'))
end
Program the Slider and Edit Text Components
Each slider is coupled to an edit text component to accomplish these tasks:
Display the current value of the slider in the edit text box.
Update the slider when you enter a value into the edit text box.
Update the appropriate model parameters when you interact with the slider and edit
text box.
Vista de pagina 305
1 2 ... 301 302 303 304 305 306 307 308 309 310 311 ... 499 500

Comentarios a estos manuales

Sin comentarios

LG 24MB65PY manuals

Owner’s manuals and user’s guides for DVD players LG 24MB65PY.
We providing pdf manuals LG 24MB65PY for download free by document types:






More products and manuals for DVD players LG

Models Document Type
DN788 User Manual   LG DN788 User's Manual, 24 pages
HT355SD-A2 User Manual    LG HT355SD-A2 User's Manual, 32 pages
DV8931H User Manual    LG DV8931H User's Manual, 54 pages
HTW316 User Manual   LG HTW316 User's Manual, 40 pages
DVX9900H User Manual   LG DVX9900H User's Manual, 31 pages
ZDX-313 User Manual   LG ZDX-313 User's Manual, 40 pages
DVX642H User Manual   LG DVX642H User's Manual, 24 pages
DNX190UH User Manual   LG DNX190UH User's Manual, 26 pages
DVT699H User Manual   LG DVT699H User's Manual, 28 pages
DR787T Specifications   LG DR787T Specifications, 2 pages
LRM LRM-519 User Manual   LG LRM LRM-519 User's Manual, 2 pages
HT306SU User Manual   LG HT306SU User manual, 38 pages
DVX692H User Manual   LG DVX692H User manual, 24 pages
LHX-557 User Manual   LG LHX-557 User's Manual, 56 pages
VT 4015 User Manual    LG VT 4015 User's Manual, 28 pages
LH-T1000 User Manual   LG LH-T1000 User's Manual, 36 pages
DGK775 User Manual    LG DGK775 User manual, 50 pages
LDA-730 User Manual    LG LDA-730 User's Manual, 44 pages
DH4220S User Manual   LG DH4220S User's Manual, 40 pages
DVT589H User Manual   LG DVT589H User's Manual, 22 pages