MATLAB: How to add “Data Store Memory” data to the Stateflow 6.3 (R14SP3) Truth Table block in a Simulink model

globallogicstateflowvariable

I am using the Truth Table block in my model. I want to add "Data Store Memory" data to the Truth Table. However, when I select "Add -> Data", I only see "Local', "Constant" and "Parameter" listed. I am not sure how to add data with the scope defined as "Data Store Memory".

Best Answer

This enhancement has been incorporated in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
There is a bug in the Truth Table block in Stateflow 6.3 (R14SP3) that prevents you from adding data with the scope "Data Store Memory" directly from the "Add - > Data" menu.
To work around this issue, use either of the following methods to add "Data Store Memory" data to the Truth Table:
1. Select "Add -> Data-> Local". In the resulting dialog box, change the scope to "Data Store Memory"
2. Add the data to the Truth Table from the Model Explorer.