Stateflow    

Specify the Search Scope

You specify the search scope for your search by selecting from the field regions discussed in the following topics:

Search in

You can select a whole machine or individual Stateflow chart for searching in the Search in field. By default, the current Stateflow chart in which you entered the Search & Replace tool is selected.

To select a machine, do the following:

  1. Select the down arrow of the Search in field.
  1. A list of the currently loaded machines appears with the current machine expanded to reveal its underlying Stateflow charts.

  1. Select a machine.

To select a Stateflow chart for searching, do the following:

  1. Select the down arrow of the Search in field again.
  1. This time the displayed list contains the previously selected machine expanded to reveal its Stateflow charts.

  1. Select a chart from the expanded machine.

Object Types

Limit your search to text matches in the selected object types only when you do the following:

  1. Expand the Object types field.
  2. Select one or more object types.

Field Types

Limit your search to text matches for the specified fields only by doing the following:

  1. Expand the Field types field.
  2. Select one or more of the available field types

Available field types are as follows:

Names.   Machines, charts, data, and events have valid Name fields. States have a Name defined as the top line of their labels. You can search and replace text belonging to the Name field of a state in this sense. However, if the Search & Replace tool finds matching text in a state's Name field, the remainder of the label is subject to succeeding searches for the specified text whether or not the label is chosen as a search target.

Labels.   Only states and transitions have labels.

Descriptions.   All objects have searchable Description fields.

Document links.   All objects have searchable Link fields.

Custom code.   Only target objects contain custom code.


  Using Different Search Types Using the Search Button and View Area