15-06-2012, 03:41 PM
Introduction of Demo Simulation
Demo Simulation.pdf (Size: 170.56 KB / Downloads: 29)
Control le program
This is a function le with extension .m.
Get the signals, such as states, time etc.
Generate the control according to a particular control
strategy.
Prepare for simulation of the system by generating _ x. The
simulink le will integrate _ x to provide x.
Output the control signal u and _ x. Output any other signals
if required.
Important Make sure that the name of the le and name
of the function is the same.
Declare all data needed from the workspace in a global
statement placed just after the function statement.
Important Copy the global statement in the data le.
5/
Simulink diagram
This is diagram made by pulling ready made blocks from the
Simulink Library and connecting them.
This diagram is saved with the extension .mdl.
matlab function block is part of this diagram which
essentially stands for the controller block in a feedback
control system.
The system is simulated here.
The results can be displayed or stored here for displaying
later.
mportant Point Enter parameters required using
symbols. Dene the symbols in the Data le.