0% found this document useful (0 votes)
45 views8 pages

How To Use Simulink For Lab 6

The document provides instructions for creating and simulating a system model in Simulink. It describes adding blocks like transfer functions, integrators, summing junctions and gains from the library and connecting them to model different systems. It also explains how to run the simulation and view the step response graph output.

Uploaded by

adie ad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views8 pages

How To Use Simulink For Lab 6

The document provides instructions for creating and simulating a system model in Simulink. It describes adding blocks like transfer functions, integrators, summing junctions and gains from the library and connecting them to model different systems. It also explains how to run the simulation and view the step response graph output.

Uploaded by

adie ad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

SIMULINK: KNOW HOW

1- Create new file for Simulink

2- A simulink workplace will appear

Page | 1
3- Go to Simulink Library

4- A simulink library browser as shown below will pop out. Here, in simulink library browser, tools
and component (s) to be used in simulation can be picked.

Page | 2
5- Next to implement below type of system in simulink.

1
6- First, we will find transfer function as shown in above system. Go to simulink library
s + 2s + 3
2

browser, search for “Transfer fcn”. Drag the block to the simulink model (at right side of the
window)

Page | 3
7- Change value of the”Transfer fcn” block by double clicking at it. Insert new value(s) so that it
follow the denominator of your transfer function.

1
8- In the system “ ” refer to integrator, search for integrator inside simulink library browser.
S

Page | 4
9- Continuously add other elements for the block diagram.
a. Summing junction = add
• You may change to add or to subtract (+ve or –ve), by double clicking it.
b. Step input = Step
c. Workspace = data container after you run the simulation
• Make sure you save format in “array ” form by double clicking at it.
d. clock = Clock block outputs the current simulation time at each simulation step. This
block is useful for other blocks that need the simulation time.
e. Gain = Gain block multiplies the input by a constant value (gain)

Page | 5
10- Connect all the related element so that it will resemble the original system.

11- Change block name to “t_out” for time output & “simout” for simulation output so that this will
help you to understand during data extraction and graph interpolation.

Page | 6
12- After completing the connection, run the simulation by pressing start simulation button on top
of the toolbar.

13- You can generate step response graph using the data stored in your workspace by executing
below command in matlab or in the m-file.

Page | 7
Output that you will get as below :

Step response for simout


3.5

2.5
Amplitude

1.5

0.5

0
0 1 2 3 4 5 6 7 8 9 10
Time

Page | 8

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy