Presentation is loading. Please wait.

Presentation is loading. Please wait.

MATLAB and SimulinkLecture 21 To days Outline Introduction to Simulink Block diagrams Building models Exercises on today’s topics.

Similar presentations


Presentation on theme: "MATLAB and SimulinkLecture 21 To days Outline Introduction to Simulink Block diagrams Building models Exercises on today’s topics."— Presentation transcript:

1 MATLAB and SimulinkLecture 21 To days Outline Introduction to Simulink Block diagrams Building models Exercises on today’s topics

2 MATLAB and SimulinkLecture 22 Introduction to Simulink An extension to MATLAB It allows us to create models of dynamical and static system. Block notation Continuous-time components Discrete-time components Hybrid systems

3 MATLAB and SimulinkLecture 23 Introduction to Simulink Most physical systems are modeled as continuous systems Most physical systems can be described using differential equations. Dynamical or Static systems Linear or Non linear systems Time invariant or Time variable systems

4 MATLAB and SimulinkLecture 24 Introduction to Simulink Lumped parameter systems Completely stirred heated water tank. Distributed parameter systems A heated water tank without stirrer. Deterministic systems System that are somehow predictable. System parameters are known Stochastic systems System that appear to be completely random: Ex: The Stock market.

5 MATLAB and SimulinkLecture 25 Introduction to Simulink

6 MATLAB and SimulinkLecture 26 Introduction to Simulink

7 MATLAB and SimulinkLecture 27 Introduction to Simulink Four primitive blocks are used to represent linear systems. Gain Sum Derivative Integrator Any system that can be described using linear differential equations may be modeled using these blocks.

8 MATLAB and SimulinkLecture 28 Block diagrams Copying a block Right click and drag & drop Rotating a block Ctrl+r Changing block label Double click on label Adding a drop shadow and color Right click

9 MATLAB and SimulinkLecture 29 Block diagrams Sources Step Unit Impuls function (Dirac) From workspace Sinks Scope block XY-Graph To workspace

10 MATLAB and SimulinkLecture 210 Block diagrams Examples of different blocks

11 MATLAB and SimulinkLecture 211 Block diagrams Configuring the simulation See help on configuring

12 MATLAB and SimulinkLecture 212 Block diagrams Construct a model of Bacteria growth in a jar. The following relations are given:

13 MATLAB and SimulinkLecture 213 Block diagrams From equation to Block diagram

14 MATLAB and SimulinkLecture 214 Block diagrams

15 MATLAB and SimulinkLecture 215 DC-Motor Input: Applied voltage Output: Angular speed Disturbance: Change in load

16 MATLAB and SimulinkLecture 216 DC-Motor

17 MATLAB and SimulinkLecture 217 Exercises on this days topics Start Simulink Examine the different sources that exist in Simulink. Use a scope to view the different sources. Examine the other subsystem in simulink, Math operation etc. Create the model of the cart attach to the wall with a spring and a shock absorber. Connect different sources representing the force. Simulate Add names to the different blocks and signals. Right click on a block and examine what kind of changes you can do with the block, color, shadows etc. Open the simulation parameters and change max time step and stop time if necessary. Try different input signals. Create the models used during the lesson.


Download ppt "MATLAB and SimulinkLecture 21 To days Outline Introduction to Simulink Block diagrams Building models Exercises on today’s topics."

Similar presentations


Ads by Google