Real-Time Workshop    

Declaring Test Points

A test point is a signal that is stored in a unique location that is not shared or reused by any other signal. Test-pointing is the process of declaring a signal to be a test point.

Test points are stored as members of the rtB structure, even when the Signal storage reuse and Local block outputs option are selected. Test-pointing lets you override these options for individual signals. Therefore, you can test-point selected signals, without losing the benefits of optimized storage for the other signals in your model.

To declare a test point, use the Simulink Signal Properties dialog box as follows:

  1. In your Simulink block diagram, select the line that carries the signal. Then select Signal properties from the Edit menu of your model. This opens the Signal properties dialog box.
  1. Alternatively, you can right-click the line that carries the signal, and select Signal properties from the pop-up menu

    .

  1. Check the SimulinkGlobal (Test Point) option.
  2. Click Apply.

For an example of storage declarations and code generated for a test point, see Table 5-5, Signal Properties Options and Generated Code,.


  Signals with Auto Storage Class Interfacing Signals to External Code