Using Simulink Previous page   Next Page

Working with Test Points

A test point is a signal that Simulink guarantees to be observable, for example, on a Floating Scope, during a simulation. 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)), that can render signals inaccessible and hence unobservable during simulation.

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.


Previous page  Documentation Options Displaying Signal Properties Next page

© 1994-2005 The MathWorks, Inc.