Target Language Compiler | ![]() ![]() |
Data Logging Information (DataLoggingOpts)
The Workspace I/O page of the Simulation Parameters dialog box gives you the option of selecting whether to log data after executing model code generated from Real-Time Workshop. If you choose to log data, you must select one or more check boxes for Time, States, Output, or Final state. You can use the default variable names shown in the dialog box or replace these with your own name selections.
To conserve memory and/or file space when data logging, you can limit data collection to the final N
points of your simulation. Select the Limit rows to last check box and use the default value 1000
. Using the default setting saves the selected workspace variables to a buffer of length 1000
. If desired, you can provide another value for the total number of points per variable to store. You can also select to store the variables in one of three formats:
All data logging information corresponding to the Workspace I/O page is placed within the CompiledModel.DataLoggingOpts
record. This record may change with future enhancements to the Workspace I/O page. It is intended to be used in conjunction with the MathWorks-provided MAT-file logging utility file, matlabroot
/rtw/c/src/rtwlog.c
.
This table lists and describes the data logging information for model
.rtw
.
![]() | RTWGenSettings Record | Data Structure Sizes | ![]() |