Stateflow User's Guide Previous page   Next Page

Resolving Signal Objects for Output Data

Stateflow blocks participate in signal resolution with Simulink signal objects, which are used to specify the attributes of any signal in Simulink. By default, if a Simulink signal object exists with the same name as an output data from a Stateflow block, the output data becomes associated with the signal object. This is referred to as implicit signal resolution. See Simulink documentation for a more detailed explanation of implicit signal resolution.

By default, implicit signal resolution of matching Stateflow output data receives a warning when the Simulink diagram is updated. Use the subtopics that follow to control implicit signal resolution and its warnings for the Stateflow output data signals in your model.

Eliminating the Warnings for Implicit Signal Resolution for the Model

If you want implicit signal resolution for all model signals, including Stateflow output data, but want to eliminate the warnings for all signals in the model, do the following:

  1. In Simulink, from the Simulation menu, select Configuration Parameters.
  1. The Configuration Parameters dialog appears.

  1. In the left pane of the dialog, under the Diagnostics node, select the Data Integrity node.
  1. The Data Integrity configuration parameters appear in the right pane of the Configuration Parameters dialog. By default, the Signal resolution control field is set to Try resolve all signals & states (warn for implicit resolution).

  1. For the Signal resolution control field, select Try resolve all signals & states.

Disabling Implicit Signal Resolution for a Stateflow Chart

If you enable implicit signal resolution for the model but want to eliminate it for an individual Stateflow chart, do the following:

  1. Right-click the Stateflow block with output data that you do not want resolved.
  2. From the resulting context menu select Subsystem Parameters.
  3. In the resulting Block Parameters dialog, for the Permit hierarchical resolution field, select ParametersOnly or None.

Enabling Explicit Signal Resolution for an Individual Output Data Signal

If you want to force signal resolution for an individual output signal for a Stateflow block, do the following:

  1. In Simulink, right-click the signal line connected to output data that you want to resolve.
  2. From the resulting pop-up menu select Signal Properties.
  1. The Signal Properties dialog appears.

  1. In the Signal Properties dialog, enter a name for the signal corresponding to its signal object.
  2. Select the Signal name must resolve to Simulink signal object check box and select OK to save and apply your settings and close the Signal Properties dialog.

Previous page  Sharing Input and Output Data with Simulink Bringing Simulink Parameters into Stateflow Next page

© 1994-2005 The MathWorks, Inc.