Download DYNAST Guide - Web-Based and On
Transcript
17.3. CONTROLLING MODEL IN DYNAST BY SIMULINK 17-3 input is the identifier of the parameter of an E or J source, independent BS block, or of an equation parameter output is the identifier of the desired variable of the analyzed model Example. : 17.3.2 In the case of the inverted-pendulum problem this statement should be of the form MATLAB interface spec: ’F’;’phi,omega,x,v’ Required setup of MATLAB Konfiguraci MATLABu pro soubnou simulaci DYNASTu se Simulinkem si provete v nsledujcch krocch: 1. Activate program MATLAB. 2. Apply the command Set path from the File menu. 3. Choose Add Folder. 4. Nalistujte sloku uvedenou ne. 5. Click the Save button for saving the setup. 6. Click the Close button to close the window. Nalistovan sloka m podobu folder\matlab\ toolbox\DYNAST folder is the name of the folder in which DYNAST and its environment is stored on your ) computer (usually C:\Program Files\DYNAST toolbox is the character string toolbox6 for MATLAB version 6, or toolbox7 for MATLAB version 7 17.3.3 Preparing the control diagram in Simulink In Simulink, set up the block diagram of the control system with an S-function block from the Simulink Nonlinear library representing the plant model. Then specify the following parameters for the S-function block: V Simulinku je poteba vytvoit blokov schma dc struktury s blokem S-Function pedstavujcm model zen soustavy implementovan v DYNASTu. Uveden blok si zadte tmto postupem: 1. Set up the block diagram of the complete control system 2. Choose the block of type S-Function from the Nonlinear library or User-Defined Functions. 3. Type to the S-function name box the string of characters dynPlantL 4. Type to the S-function parameters box the ’path’, sampling