User`s guide

Where to Find Information in This Manual
2-7
External mode you can tune parameters from Simulink while running the
generated code on a target processor. See Chapter 4, “External Mode,” for
information on this mode.
External C application program interface (API) you can write your own C
API interface using support files provided by The MathWorks. See “C API for
Parameter Tuning” on page 3-19 for more information.
Rapid Simulation you can use the Rapid Simulation Target (
rsim)inbatch
mode to provide fast simulations for performing parametric studies.
Although this is not an on-the-fly application of parameter tuning, it is
nevertheless a useful way to evaluate a model. This mode is also useful for
Monte Carlo simulation.
Simulink — prior to generating real-time code, you can tune parameters
on-the-fly in your Simulink model.
11. Monitoring Signals and Logging Data
There are several ways to monitor signals and data in the Real-Time
Workshop:
External mode — you can monitor signals by selecting Scope blocks. See
“Signals & Triggering” on page 4-7 for a discussion of this method.
External C API — you can write your own C API using support files provide
by the MathWorks. See “C API for Signal Monitoring” on page 5-4 for more
information.
MAT-file logging — you can use MAT-file to log data in the generated
executable. See “MAT-File Data Logging” on page 5-2 for more information.
Simulink — you can use any of Simulink’s data logging capabilities.
12. Interfacing Signals and Parameters
You can interface signals and parameters in your model to hand-written code
by changing the storage class of signals in your model. For more information,
see:
Signal Properties” on page 3-19
“Tunable Parameters” on page 3-18