User`s guide

Quick Start Tutorials
3-21
enables Real-Time Workshop to generate code that logs the simulation
time to the MAT-file with a related name, as you will see below.
4 Select the Output option. This tells Simulink to save time step data during
simulation as a variable named
yout. Selecting Output enables Real-Time
Workshop to generate code that logs the root Output blocks (Angle of
Attack and Pilot G Force) to the MAT-file with a related name, as you will
see below.
Note The sort order of the yout array is based on the port number of the
Outport blocks, starting with 1. Angle of Attack and Pilot G Force are logged
to yout(:,1) and yout(:,2), respectively.
5 If any other options are enabled, clear them. Set Decimation to 1 and
Format to Array. The figure below shows how the dialog appears.
6 Click Apply to register your changes.
7 Open the Pilot G Force Scope block, and run the model by clicking on the
Start button in the model’s toolbar. The resulting G Force scope display is
shown below.