MATLAB: How to locate where inputs and outputs to/from a Stateflow chart are used within the chart

datafind_systemoutportsignalstateflowvalue

I have a large Stateflow chart that has several inputs and outputs. I want to determine where in the chart the outputs are getting assigned. How can I accomplish this?

Best Answer

You can use the FIND utility in Simulink to locate the signals you're interested in. To access this, first ensure that you have the Stateflow chart open in your model. From there, you can either navigate to "Edit -> Find" in the menu bar of your model, or use the keyboard shortcut "Ctrl+F". Then, enter the name of the output signal that you want to find in the dialog box and click "Find". This will show all locations within your Stateflow Chart where the signal name you entered is used, allowing you to highlight all transitions, states, and functions of interest.