| Simulink® | ![]() |
| On this page… |
|---|
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.
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).
Note If you set the test point property of a signal in a library that is referenced by a model that is itself referenced by another model, you must update the referenced model by opening and saving it. Otherwise, Simulink cannot log or display the referenced signal. |
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:
The model does not specify the signal as a test point, i.e., the Test point option is unchecked in the Signal Properties dialog box.
The model specifies the signal's storage class as auto (the default), i.e., the Storage class option in the signal's Signal Properties dialog box is set to auto.
A Simulink.Signal object is associated with the signal, i.e., the MATLAB workspace contains a signal object having the same name as the signal.
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.
By default, Simulink displays an indicator next to each signal that serves as a test point.
Note Simulink displays indicators only for signals whose Test point option is checked in the Signal Properties dialog box. If you designate a test point using a Simulink.Signal object, Simulink does not display an indicator. |
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.
![]() | Initializing Signals and Discrete States | Displaying Signal Properties | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |