User`s guide
13 Real-Time Workshop Rapid Simulation Target
13-4
Building for the Rapid Simulation Target
By specifying the system target file (rsim.tlc)andthetemplatemakefile
(
rsim_default_tmf)ontheReal-TimeWorkshoppageoftheSimulation
Parameters dialog box, you can use the Real-Time Workshop to generate and
build an
rsim executable. This picture shows the dialog box settings for the
rapid simulation target
Figure 13-1: Specifying Target and Make Files for rsim.
After specifying system target and make files as noted above, select any desired
Workspace I/O settings, and press Build. The Real-Time Workshop will
automatically generate C code and build the executable for your host machine
using your host machine C compiler. See “Target Systems and Associated
Support Files” on page 2-9 for additional information on compilers that are
compatible with Simulink and the Real-Time Workshop.
Running a Rapid Simulation
The rapid simulation target lets you run a simulation similar to the generic
real-time target (
grt) provided by the Real-Time Workshop. This simulation
does not use timer interrupts, and therefore is a nonreal-time simulation
environment. The difference between
grt and rsim simulations is that rsim
allows you to change parameter values or input signals at the start of a
simulation without the need to generate code or recompile. The generic
Press the Browse button and
select the rapid simulation
target from the
System Target
File Browser
.This
automatically selects the
correct settings for the system
target file, the template
makefile, and the make
command.