To access global data in a Simulink® model from a chart, you must bind a Stateflow® data object to a Simulink data store — either a data store memory block or a signal object (see Bind a Stateflow Data Object to Data Store Memory).
To create read/write references to a global data store that you can share across multiple models:
You can use an interface to direct charts to access global variables in Simulink models.
Charts can interface with local and global data stores.
Multiple reads and writes can occur unintentionally in the same time step.
When you bind a Stateflow data object to a data store, the Stateflow object inherits all properties from the data store.