| Stateflow User's Guide | ![]() |
Bringing Simulink Parameters into Stateflow
You might want to use Simulink parameters for a parent masked subsystem in a Stateflow diagram. To bring these parameters into Stateflow diagrams, do the following:
Data of scope Parameter is defined as a constant in the Stateflow diagram workspace. It cannot be changed during application execution. This scope is primarily designed for Stateflow developers who want to use Simulink parameters with Stateflow blocks and maintain consistency with the Simulink model.
| Note Stateflow data of scope Parameter is not a Stateflow parameter. It is a mechanism for bringing Simulink parameters into a Stateflow diagram. |
When simulation starts, the data of scope Parameter is resolved at the lowest level by a parameter with the name of the Stateflow data defined for the masked subsystem containing the Stateflow block. If the parameter of a masked subsystem parent does not resolve the value of the data, it continues to be resolved by higher level masked subsystems.
| Resolving Signal Objects for Output Data | Initializing Data from the MATLAB Base Workspace | ![]() |
© 1994-2005 The MathWorks, Inc.