Model Incompatibility with Simulink Design Verifier Due to "Machine-parented" data

10 Ansichten (letzte 30 Tage)
When running Check Subsystem Compatibility on a Stateflow chart in my model called "controller", I get the following error:
Model 'controller' has machine parented Data 'data' . Simulink Design Verifier does not support the usage of machine parented data objects. You can work around this limitation by using Data Store Memory Blocks and binding them to chart data objects.
What does this error mean? I don't know what this 'data' object is, as I don't see it in my model.

Akzeptierte Antwort

Pat Canny
Pat Canny am 30 Mär. 2018
This probably occurred because a new data object was mistakenly added in the Model Explorer by clicking on the Add Data button. Clicking on the Add Data button will automatically create a new data object called "data". Consider deleting this object by going to the Model Explorer, searching the model for "data", clicking on the "data" object and selecting Cut.
After removing the "data" object, re-run Check Subsystem Compatibility.
Here is a quick explanation of what "machine-parented" data is (from the Stateflow User's Guide , page 7-9):
Machine-parented data is data that you define for a Stateflow machine, which is the collection of all Stateflow blocks in a Simulink model. The Stateflow machine is the highest level of the Stateflow hierarchy. When you define data at this level, every chart in the machine can read and modify the data. To ensure that Mealy charts do not access data that can be modified unpredictably outside the chart, do not use machine-parented data.

Weitere Antworten (0)

Kategorien

Mehr zu Schedule Model Components finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by