Real-Time Workshop User's Guide |
 |
Data Logging
You can use the Ada real-time simulation target (rt_ada_sim
) to perform the same data logging as a Simulink simulation. To enable MAT-file logging, select Ada-specific code generation options item in the Category menu of the Real-Time Workshop page. Then select the MAT-file logging option. When this option is selected, the Ada program executes for the duration specified by the Stop time field on the Solver page of the Simulation Parameters dialog box.
When the Ada Coder finishes its run, a model
.mat
file is created that contains all workspace variables that would have been created by running a Simulink simulation. The names of these workspace variables are the same as the names that would have been created by Simulink, except that an rt_
prefix is attached. See Workspace I/O Options and Data Logging in Chapter 3 for more information about data logging.
Note
If you do not select MAT-file logging, the stop time is ignored and the Ada program runs without stopping. |
| Configuring the Template Makefile | | Generating Block Comments |  |