User`s guide

3 Signals and Parameters
3-42
4 In the MATLAB window, type either
tg.AvgTET or get(tg,'AvgTET')
MATLAB displays the following information about the average task
execution time.
ans =
5.7528e-006
The percentage of CPU performance is the average TET divided by the sample
time.
Signal Logging with a Web Browser
When you stop the model execution, another section of the Web browser
interface appears that enables you to download logging data. This data is in
comma-separated value (CSV) format. This format can be read by most
spreadsheet programs and also by MATLAB using the
csvread function.
This section of the Web browser interfaces appears only if you have enabled
data logging, and buttons appear only for those logs (states, output, and TET)
that are enabled. If time logging is enabled, the first column of the CSV file is
the time at which data (states, output, and TET values) was acquired. If time
logging is not enabled, only the data is in the CSV file, without time
information.
You analyze and 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.
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 in the xPC Target getting started documentation.
Task execution time — Logging the task execution time is possible only if you
select the
Log Task Execution Time check box in the Configuration
Parameters xPC Target options
node. This check box is selected by default.
See “Entering Parameters for an xPC Target Scope Block” in Chapter 3 in the
xPC Target getting started documentation.