xPC Target    

Signal Logging with a Web Browser

When you stop the model execution, another section appears that enables you to download logging data. This data is in CSV format. This format can be read by most spreadsheet programs and also by MATLAB using the csvread command.

This section will appear 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 (state values, output values, 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, before the build process, outport blocks to your Simulink model, and in the I/O-Workspace page select the Save to workspace check boxes. See Entering Parameters for Outport Blocks.

Task execution time -- Logging the task execution time is possible only if you select the Log Task Execution Time check box in the xPC Target code generation option page. This check box is selected by default. See Entering Parameters for an xPC Target Scope Block.


  Signal Logging with MATLAB Parameter Tuning