Import data into standalone Simulink model

조회 수: 2 (최근 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

채택된 답변

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 CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by