User`s guide

3 Signals and Parameters
3-8
8 In the chart, select Tools -> Explore.
The Model Explorer is displayed.
9 In the Model Explorer, expand sf_car.
10 Expand gear_state, then select first.
11 In the rightmost pane, State first, select the Test point check box. This
creates a test point for the
first state.
12 Click Apply.
13 Build and download the sf_car target application to the target PC.
You can now view the states with the xPC Target Explorer or MATLAB.
Monitoring Stateflow States with xPC Target Explorer
This topic assumes that you have already test-pointed Stateflow states (see
“Monitoring Stateflow States” on page 3-6 if you have not).
1 If the xPC Target Explorer is not yet started, start it now and connect it to
the target PC that has the downloaded
sf_car target application.
2 To view the test point in the xPC Target Explorer, expand the Model
Hierarchy node and navigate to
shift_logic. The test point
gear_state.first appears like any other signal in the hierarchy, as follows: