User`s guide
3 Signals and Parameters
The MATLAB interface displays the following information about the
average task execution time.
ans =
5.7528e-006
ThepercentageofCPUperformanceistheaverageTETdividedbythe
sample time.
Note that each outport h as an associated column vector in
tg.OutputLog.
You can access the data that corresponds to a particular outport by specifying
the column vector for that outport. Forexample,toaccessthedatathat
corresponds to Outport 2, use
tg.outputlog(:,2).
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. T his format can be read by mos t
spreadsheet programs and also by the MATLAB interface using the
dlmread
function.
This section of the Web browser interface appears only if you have enabled
data logging, and buttons appear only for those logs (states, output, and TET)
thatareenabled. Iftimeloggingisenabled,thefirstcolumnoftheCSVfile
is the time at w hich data (states, output, and TE T 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 bo xes . Se e “Ente ring Parameters for the Outport
Blocks” in xPC Target Getting Started Guide.
3-64