Working with Test Points

About Test Points

A test point is a signal that Simulink® guarantees to be observable when using a Floating Scope block in a model. Simulink allows you to designate any signal in a model as a test point.

Designating a signal as a test point exempts the signal from model optimizations, such as signal storage reuse (see Signal storage reuse) and block reduction (see Implement logic signals as boolean data (vs. double)). These optimizations render signals inaccessible and hence unobservable during simulation.

Signals designated as test points will not have algebraic loops minimized, even if Minimize algebraic loop occurrences is selected (for more information about algebraic loops, see Algebraic Loops).

Test points are primarily intended for use when generating code from a model with Real-Time Workshop®. For more information about test points in the context of code generation, see Declaring Test Points in the Real-Time Workshop documentation.

Designating a Signal as a Test Point

To designate a signal as a test point, check the Test point option on the signal's Signal Properties dialog box (see Signal Properties Dialog Box).

Using Signal Objects to Designate Test Points

You can use Simulink.Signal objects to designate test points from the MATLAB® workspace. This allows you to designate test points in a model without having to modify the model itself. To use a Simulink.Signal object to control a signal's visibility, the following conditions must be true:

If all these conditions are true, you can designate the signal as a test point by setting the associated object's storage class property to any value but auto.

Displaying Test Point Indicators

By default, Simulink displays an indicator next to each signal that serves as a test point.

These test point indicators enable you to find the test points in a model at a glance.

The appearance of the indicator changes slightly to indicate test points for which signal logging is enabled.

To turn display of test point indicators on or off, select Port/Signal Displays > Test Point Indicators from the Simulink Format menu.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS