Laboratory work 7
The purpose of the work : to get acquainted with the methods of launching the Simulink package and the procedure for creating a model.
Basic information
Simulink is an interactive tool for modeling, simulating and analyzing dynamic systems . It provides the ability to build graph block diagrams, simulate dynamic systems, test system performance, and improve projects. Simulink is fully integrated with MATLAB.
Procedure
1. Launch Simulink
After the main window of the MATLAB program opens (Figure 1) , run the Simulink program in the following ways:
Simulink button click ;
the main window of MATLAB command in the bar Simulink so ' zini terib Press the key on the keyboard click ;
File menu , click Open ... do and modeling file (mdl- file ) open .
Figure 7.1. The main window of the MATLAB program
When using the first and second methods, the Browse window of the Simulink library sections opens (Figure 2).
Figure 7.2. A window of sections of the Simulink library
2. Create a model
To create a model in SIMULINK environment, do the following:
File / New / Model , command, or toolbar Create a new model file using the button . The newly created window of the model is shown in Figure 1;
model window blocks place ng . That's it for of the library required bo ' limi opens ( for example , Sources ) . _ So ' ngra required block cursor with is displayed and left mouse button printing created to the mirror is pushed . Blocks has model window _ _ 2 - ramda shown . Agar block no solidification necessary if his on left mouse button printed , then esa on the keyboard Delete key is printed .
7.3 . The model is an empty window
7.4 . A block window with blocks
Change the block settings. To do this, double-click the left mouse button on the block image. The Edit Block Settings window opens. After making the necessary changes, close the window by clicking OK. As an example , Figure 3 shows the Signal Generator block setting window .
7.5 . Signal Generator Block Setup Window
Once all the necessary blocks are placed on the circuit, connect the circuit elements together. To connect the blocks to each other, the cursor is moved to the exit of the block and the line is drawn until the entrance of the other block is pressed with the left mouse button. To create a distribution point on the connection line, right-click on the point where the node should be located and draw the desired line. To lose the drawn line, select it and on the keyboard Press the Delete key. Blocks a schematic of the interconnected model is shown in Figure 4.
Figure 7.6. Schematic of the model
Once the calculation scheme is created, save it as a file on disk. To do this, select File / Save from the menu in the schema window , specify the folder and file name.
Do'stlaringiz bilan baham: |