XML schema for Stateflow

5 views (last 30 days)
Pavla
Pavla on 14 Aug 2014
Commented: Yamen on 6 Sep 2021
I would like to be able to check if XML file is valid Stateflow. Where can I find some XML schema?
  1 Comment
Yamen
Yamen on 3 Sep 2021
Edited: Yamen on 6 Sep 2021
@Pavla, here is how you can export the model to XML format:
save_system('mymodel','exportfile.xml','ExportToXML',true)

Sign in to comment.

Accepted Answer

Joachim Schlosser
Joachim Schlosser on 19 Aug 2014
Stateflow's model format is readable, but not open. You should not need to directly read or write SLX model files, as this format may change without prior notice. If you want to modify your Simulink or Stateflow models, please use the Simulink model API as referred in the documentation.
What do you want to achieve?
  4 Comments
Joachim Schlosser
Joachim Schlosser on 3 Sep 2021
If you cannot find the API doc via search in either Google Robin the doc site, I recommend to refrain using Simulink programmatically.
Yamen
Yamen on 6 Sep 2021
i need to use simulink programmatically to automate the re-creation of test harness with test sequence source that was originally created manually .
I have about 50 test harness that need to be recreated for a different version component (same component as in origianl model with the harness, but different interfaces)

Sign in to comment.

More Answers (0)

Categories

Find more on Complex Logic in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!