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

조회 수: 5 (최근 30일)
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.

채택된 답변

Pat Canny
Pat Canny 2018년 3월 30일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by