Conversion of Simulink .mdl or .slx model into XML

23 visualizaciones (últimos 30 días)
Rizwana
Rizwana el 9 de Jun. de 2016
Editada: Walter Roberson el 16 de Abr. de 2021
I tried using :
sys = 'dummy.slx'
save_system(sys, 'exported_file_name.xml', 'ExportToXML', true)
But I keep getting the below error:
Error using save_system (line 38) Invalid Simulink object name: dummy.slx
Please if anyone can help me out to get an xml file out of .mdl or .slx simulink model.
  1 comentario
Hoang Phi Pham
Hoang Phi Pham el 15 de Abr. de 2021
Hello,
I have started with MDL file and XML file few days ago. I'm so confuse about how to convert MDL to XML for parse C# class. But when I read your thread, I think I have understood a little bit, thank you for this. Can I ask you that what programming languages that you have used? Because I have no idea to continue.
"sys = 'dummy.slx'
save_system(sys, 'exported_file_name.xml', 'ExportToXML', true)"
Thank you.

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 9 de Jun. de 2016
Try
sys = 'dummy'
It is a system name, not a file name.
  2 comentarios
Rizwana
Rizwana el 9 de Jun. de 2016
Thank you so much :)
Iris Iris
Iris Iris el 18 de Feb. de 2020
I used this command and get the warning like this: the ‘ExportToXmL’option is no longer supported and will be removed in a future release. Could you help me,please? Thank you!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Environment Customization en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by