I would like to be able to check if XML file is valid Stateflow. Where can I find some XML schema?

1 comentario

Yamen
Yamen el 3 de Sept. de 2021
Editada: Yamen el 6 de Sept. de 2021
@Pavla, here is how you can export the model to XML format:
save_system('mymodel','exportfile.xml','ExportToXML',true)

Iniciar sesión para comentar.

 Respuesta aceptada

Joachim Schlosser
Joachim Schlosser el 19 de Ag. de 2014

0 votos

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 comentarios

Iris Iris
Iris Iris el 18 de Feb. de 2020
May I ask how to export a stateflow model to xml file? Thanks a lot!
Yamen
Yamen el 3 de Sept. de 2021
@Joachim Schlosser, can you please provide the link to documentation for the Simulink model API ?
Joachim Schlosser
Joachim Schlosser el 3 de Sept. de 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 el 6 de Sept. de 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)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Decision Logic en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 14 de Ag. de 2014

Comentada:

el 6 de Sept. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by