User`s guide

3 Signals and Parameters
3-38
5 Send the selected logged data to the MATLAB workspace. In the target
application properties dialog for
xpc_osc4, go to the Logging pane and click
the
Send to MATLAB Workspace button.
In the MATLAB desktop, the
Workspace pane displays the logged data.
You can examine or otherwise manipulate the data.
Signal Logging with MATLAB
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 boxes. See “Entering Parameters for the Outport Blocks” in
Chapter 3 of the xPC Target getting started documentation.
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. This check box is selected by default. See
“Adding an xPC Target Scope Block” in Chapter 3 of the xPC Target getting
started documentation.