04-02-2013, 10:19 AM
Dynamic System Simulation for MATLAB
1Dynamic System.pdf (Size: 3.43 MB / Downloads: 22)
What Is Simulink?
Simulink is a software package for modeling, simulating, and analyzing
dynamical systems. It supports linear and nonlinear systems, modeled in
continuous time, sampled time, or a hybrid of the two. Systems can also be
multirate, i.e., have different parts that are sampled or updated at different
rates.
For modeling, Simulink provides a graphical user interface (GUI) for building
models as block diagrams, using click-and-drag mouse operations. With this
interface, you can draw the models just as you would with pencil and paper (or
as most textbooks depict them). This is a far cry from previous simulation
packages that require you to formulate differential equations and difference
equations in a language or program.
How to Use This Manual
Because Simulink is graphical and interactive, we encourage you to jump right
in and try it.
For a useful introduction that will help you start using Simulink quickly, take
a look at “Running a Demo Model” in Chapter 2. Browse around the model,
double-click on blocks that look interesting, and you will quickly get a sense of
how Simulink works. If you want a quick lesson in building a model, see
“Building a Simple Model” in Chapter 2.
Chapter 3 describes in detail how to build and edit a model. It also discusses
how to save and print a model and provides some useful tips.
Application Toolboxes
One of the key features of Simulink is that it is built on top of MATLAB. As a
result, Simulink users have direct access to the wide range of MATLAB-based
tools for generating, analyzing, and optimizing systems implemented in
Simulink. These tools include MATLAB Application Toolboxes, specialized
collections of M-files for working on particular classes of problems.
Toolboxes are more than just collections of useful functions; they represent the
efforts of some of the world’s top researchers in fields such as controls, signal
processing, and system identification. MATLAB Application Toolboxes
therefore let you “stand on the shoulders” of world class scientists.
All toolboxes are built using MATLAB. This has some very important
implications for you:
•Every toolbox builds on the robust numerics, rock-solid accuracy, and years
of experience in MATLAB.
•You get seamless and immediate integration with Simulink and any other
toolboxes you may own.
•Because all toolboxes are written in MATLAB code, you can take advantage
of MATLAB’s open-system approach. You can inspect M-files, add to them,
or use them for templates when creating your own functions.
•Every toolbox is available on any computer platform that runs MATLAB.
Here is a list of professional toolboxes currently available from The
MathWorks. This list is by no means static— more are being created every
year.
The Simulink Real-Time Workshop
The Simulink Real-Time Workshop® automatically generates C code directly
from Simulink block diagrams. This allows the execution of continuous,
discrete-time, and hybrid systemmodels on a wide range of computer
platforms, including real-time hardware. Simulink is required.
The Real-Time Workshop can be used for:
•Rapid Prototyping. As a rapid prototyping tool, the Real-Time Workshop
enables you to implement your designs quickly without lengthy hand coding
and debugging. Control, signal processing, and dynamic system algorithms
can be implemented by developing graphical Simulink block diagrams and
automatically generating C code.
•Embedded Real-Time Control. Once a system has been designed with
Simulink, code for real-time controllers or digital signal processors can be
generated, cross-compiled, linked, and downloaded onto your selected target
processor. The Real-Time Workshop supports DSP boards, embedded
controllers, and a wide variety of custom and commercially available
hardware.
•Real-Time Simulation. You can create and execute code for an entire system
or specified subsystems for hardware-in-the-loop simulations. Typical
applications include training simulators (pilot-in-the-loop), real-time model
validation, and testing.
•Stand-Alone Simulation. Stand-alone simulations can be run directly on
your host machine or transferred to other systems for remote execution.
Because time histories are saved in MATLAB as binary or ASCII files, they
can be easily loaded intoMATLAB for additional analysis or graphic display.
The Fixed-Point Blockset
The Fixed-Point Blockset includes a collection of block diagram components
that extend the standard Simulink block library. With this new set of blocks,
you can create discrete-time dynamic systems that utilize fixed-point
arithmetic. As a result, Simulink can simulate effects commonly encountered
in fixed-point systems for applications such as control systems and
time-domain filtering. Simulink is required.