User`s guide

Quick Start Tutorials
3-23
Part 2: Data Logging from Generated Code
In the second part of the exercise, you build and run a Real-Time Workshop
executable of the f14rtw model which outputs a MAT-file containing the
variables that you logged in part 1. Even if you have already generated code
for the F14rtw model, code for it must be regenerated because you have
changed the model by enabling data logging. The steps below explain this.
Real-Time Workshop modifies identifiers for variables logged by Simulink in
order to avoid overwriting workspace data from simulation runs. You control
these modifications from the
Configuration Parameters dialog:
1 From the Configuration Parameters dialog, choose the Real-Time
Workshop
configuration node and select its Interface tab.
2 In the Symbol section of the dialog, set the MAT-file variable name
modifier
pop-up menu to _rt. This will add the suffix _rt to each variable
that you selected to be logged in part 1 of this exercise (
tout, yout).
3 Deselect the Generate code only check box, if it is currently selected. The
dialog appears as below.