Conversion of Simulink .mdl or .slx model into XML

14 ビュー (過去 30 日間)
Rizwana
Rizwana 2016 年 6 月 9 日
編集済み: Walter Roberson 2021 年 4 月 16 日
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 件のコメント
Hoang Phi Pham
Hoang Phi Pham 2021 年 4 月 15 日
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.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2016 年 6 月 9 日
Try
sys = 'dummy'
It is a system name, not a file name.
  2 件のコメント
Rizwana
Rizwana 2016 年 6 月 9 日
Thank you so much :)
Iris Iris
Iris Iris 2020 年 2 月 18 日
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!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by