EL220 Signals and Systems: Introduction To Simulink
EL220 Signals and Systems: Introduction To Simulink
Experiment # 13
Introduction to Simulink
Performed on _____________
Student Name:
Roll Number: Section:
Experiment evaluated by
Signature:
Theory
Simulink is an environment for simulation and model-based design for dynamic and embedded
systems. It provides an interactive graphical environment and a customizable set of block
libraries that let you design, simulate, implement, and test a variety of time-varying systems,
including communications, controls, signal processing, video processing, and image processing.
Simulink offers:
o A quick way of develop your model in contrast to text based-programming language
such as e.g., C.
o Simulink has integrated solvers. In text based-programming language such as e.g., C you
need to write your own solver.
1. Getting Started:
The Simulink Library Browser is the library where you find all the blocks you may use in
Simulink. Simulink software includes an extensive library of functions commonly used in
modeling a system. These include:
o Continuous and discrete dynamics blocks, such as Integration, Transfer
functions, Transport Delay, etc.
o Math blocks, such as Sum, Product, Add, etc
o Sources, such as Ramp, Random Generator, Step, etc
Block Libraries
Wiring Techniques
Help Window
Configuration
Useful Features
1. Comments \ Labels
Flip Blocks
Hide names
Example:
Lab Task
Q1.Build the circuit shown in figure. Open “Configuration Parameters” from
“Simulation” tab. Set “stop time” as “2/f” where “f” is the last 2 digits of your student
number. Set solver options as “Fixed-Step” and set “Fixed-Step size” as “1e-4”. Open
block parameters of sine wave by double-clicking to the icon. Set the frequency as
“2*pi*f” where again “f” is the last 2 digits of your student number. Run the simulation
and observe the output by double-clicking to “scope” attach output waveform.
Q2. Build the circuit shown in figure. Set “Configuration Parameters” and “Block
Parameters” given in Problem 1 except Set solver options as “Fixed-Step” and set
“Fixed-Step size” as “0.002” above. Set “Phase” of “Sine Wave 2” as “-pi/2”. Run the
simulation and observe the output. Frequency of sine wave 2 should be 3*pi*f
1) For the circuit shown in figure below adjust following setting in model configuration
parameters as depicted in snap shot
Provide sine wave source Frequency =2 Hz and amplitude 1vp-p double click gain and
set gain to 4. And add two channels on scope save and run following simulation. Attach
output graph.
Q2: For the figure shown below attach output graph take sinewave Frequency to 2Hz
Amplitude 1vp-p. Gain should be adjusted to 3 while saturation upper limit should be 0.5
and lower limit should be -0.5 as shown in figure below