%% Store and Retrieve Global Data
% After binding a Stateflow data object to a Simulink data store, you can
% store and retrieve global data in state and transition actions. The data
% object acts as a global variable that you reference by its symbolic name.
% When you store numeric values in this variable, you are writing to the
% Simulink data store memory. When you retrieve numeric values from this
% variable, you are reading from the data store memory.

% Copyright 2018-2019 The MathWorks, Inc.

%%
% For example, in this chart, the state actions read from and write to a
% Data Store Memory block called |myglobal|.

model = 'sf_dsm_state_actions.slx';
open_system(model);
open_system('sf_dsm_state_actions/Chart')
