Experiment # 05: Generating Signals Using Simulink
Experiment # 05: Generating Signals Using Simulink
Requirement:
Intel based computer
MATLAB
Theory:
Simulink is a software package that enables you to model, simulate, and analyze
system whose outputs change over time. Such systems are often referred to as
dynamic systems. Simulink can be used to explore the behavior of a wide range
of real-world dynamic systems, including electrical circuits, shock absorbers,
braking systems, and many other electrical, mechanical, and thermodynamic
systems.
Procedure:
To start Simulink, you must first start MATLAB. Consult your MATLAB documentation
for more information. You can then start Simulink in two ways: Click the Simulink icon on
the MATLAB toolbar. Enter the simulink command at the MATLAB prompt. On Microsoft
Windows platforms, starting Simulink displays the Simulink Library Browser.
Generating a Sine Wave
To create this model, you need to copy blocks into the model from
the following Simulink block libraries.
Sources library (the Sine Wave block)
Sinks library (the Scope block)
Now drag the Sine Wave block from the browser and drop it in the
model window. Simulink creates a copy of the Sine Wave block at
the point where you dropped the icon.
Procedure:
On the dialog box that appears, notice that the Stop time is set to 10.0 (its default
value).
First, set the simulation parameters by choosing Simulation Parameters from the
Simulation menu. Now, open the Scope block to view the simulation output.
Keeping the Scope window open, set up Simulink to run the simulation for
infinite seconds.