User`s guide
Real-Time Application
3-15
Real-Time Application
You create a real-time application to let your system run while synchronized to
a real-time clock. This allows your system to control or interact with an
external system. This is necessary if you use your system to stabilize a physical
plant.
The process of creating and running a real-time application includes the
creation of a Simulink Model from the previous section:
• “Creating a Simulink Model” on page 3-2
• “Entering Configuration Parameters for Simulink” on page 3-6
• “Specifying a Default Real-Time Windows Target Configuration Set” on
page 3-13
This section includes the following topics:
• “Entering Simulation Parameters for Real-Time Workshop” on page 3-15
• “Entering Scope Parameters for Signal Tracing” on page 3-18
• “Creating a Real-Time Application” on page 3-21
• “Entering Additional Scope Parameters for Signal Tracing” on page 3-22
• “Running a Real-Time Application” on page 3-26
• “Running a Real-Time Application from the MATLAB Command Line” on
page 3-29
Entering Simulation Parameters for
Real-Time Workshop
The simulation parameters are used by Real-Time Workshop for generating
C code and building a real-time application.
After you create a Simulink model, you can enter the simulation parameters
for Real-Time Workshop. This procedure uses the Simulink model
rtwin_model.mdl as an example and assumes you have already loaded that
model:
1 In the Simulink window, and from the Simulation menu, click
Configuration Parameters.
2 Click the Hardware Implementation node.