Import data into standalone Simulink model

4 ビュー (過去 30 日間)
Ioannis Sarris
Ioannis Sarris 2015 年 8 月 13 日
回答済み: Ioannis Sarris 2015 年 8 月 18 日
Hi! Do you know how I can import data into a standalone Simulink model (i.e. compiled with Simulink Coder) e.g. from a TXT or MAT file?
I have tried to do that, but Simulink Coder seems to embed the data into the model and the same output is always given even if the input TXT/MAT file is changed (even deleted).
Any help would be appreciated.
Thanks, Ioannis
  1 件のコメント
Uladzimir
Uladzimir 2015 年 8 月 13 日
Are you working in external mode?

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

採用された回答

Sainath Varikuti
Sainath Varikuti 2015 年 8 月 17 日
編集済み: Sainath Varikuti 2015 年 8 月 17 日
Hello Sarris,
The documentation example here enumerates the steps for importing a MAT file for rapid simulations.
Additionally, you can also import parameters from a data structure as discussed in the example on this documentation page.
Regards,
Sainath.

その他の回答 (1 件)

Ioannis Sarris
Ioannis Sarris 2015 年 8 月 18 日
Sainath, thank you very much for the answer. It worked!
I am still confused why this had to be so complicated.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by