User`s guide
3 Signals and Parameters
You can examine and otherwise manipulate the data.
Signal Logging in the MATLAB Interface
You plot the outputs and states of your target application to observe the
behavior of your model, or to determine the behavior when you vary the input
signals and model parameters.
Time, states, and outputs — Logging the output signals is possible only if
you add Outport blocks to your Simulink model before the build process, and
in the Configuration Parameters Data Import/Export node, select the
Save to workspace check bo xes . Se e “Ente ring Parameters for the Outport
Blocks” of the xPC Target Getting Started Guide.
Task execution time — Plotting the task execution time is possible only if
you select the Log Task Execution Time check box in the Configuration
Parameters xPC Target options tab. T his check box is selected by default.
See “Adding an xPC Target Scope Block” of the xPC Target Getting Started
Guide.
All scopes copy the last
N sam ples from the log buffer to the target object
logs (
tg.TimeLog, tg.OutputLog, tg.StateLog, and tg .TET Log).ThexPC
Target software calculates the number of samples
N for a signal as the value
of Signal logging buffer size in doub l es divided by the number of logged
signals (1 time, 1 task e xe cution time ([TET]), outputs, states).
After you run a target application, you can plot the state and output signals.
This procedure uses the Simulink model
xpc_osc3.mdl as an example, and
3-60