Intro To Computer 2016/09/29 Simulink Exercise - Create A Simple Model
Intro To Computer 2016/09/29 Simulink Exercise - Create A Simple Model
Select File > Save as. The Save As dialog box opens.
In the File name box, enter a name for your model. For example, enter simple_model.
Then click Save.
Your model is saved with the file name simple_model.
3. Add the following blocks to your model, using the same approach that you
used to add the Sine Wave block.
Your model now has the blocks you need for the simple model.
Select the block, and then press the arrow keys on the keyboard.
2. Move the Sine Wave and Integrator blocks before the Mux block.
Your model should look similar to the following figure.
Connect the blocks by drawing lines between output ports and input ports
Simulink connects the blocks with an arrow indicating the direction of signal flow.
After you finish building a model, you can simulate the dynamic
behavior of the model. See Simulate the Simple Model.
In the Simulink Editor, select Simulation > Model Configuration Parameters. The
Configuration Parameters dialog box opens to the Solver pane.
In the Stop time field, enter 20. In the Max step size field, enter 0.2.
Click OK.
The Simulink software updates the parameter values with your changes and
closes the Configuration Parameters dialog box.
After you enter your configuration parameter changes, you are ready to simulate
the simple model and visualize the simulation results.
The simulation runs. The simulation stops when it reaches the stop time specified in the
Configuration Parameters dialog box.