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:
To select a Stateflow chart for searching, do the following:
Object Types
Limit your search to text matches in the selected object types only when you do the following:
Field Types
Limit your search to text matches for the specified fields only by doing the following:
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.
Note The Name field of machines and charts is an invalid target for the Search & Replace tool. Use Simulink to change the names of machines and charts. |
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 | ![]() |