get simulink outputs data from guide interface.

14 ビュー (過去 30 日間)
Jorge
Jorge 2012 年 7 月 6 日
Hello, I am trying to develop a gui model which interacts with a simulink model. Basically, the guide interface controls the inputs (constants) of the simulink model with a few toggle buttons. So now, I want to display the outputs of the simulink system in the interface in order to just interact with the gui model. I do this through a few static texts.
I was able to do it using a block 'to workspace' in the simulink model and reading it in gui .m through a 'evalin' command.
i am considering if is possible to get the data from the outputs of the system without using the workspace. Is there any function that allows me to send the outputs directly to the guide interface?
Thanks in advance for your help!
Jorge.

採用された回答

TAB
TAB 2012 年 7 月 6 日
You can use event listener to communicate between simulink and GUI in real time (when the model is running). Using this method it is not needed to save the simulation data on workspace.
See these related post
See this simple example to know how to control values in simulink from GUI.
  1 件のコメント
Jorge
Jorge 2012 年 7 月 16 日
Thank you TAB, it was really helpful.
Jorge.

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

その他の回答 (1 件)

Marisela Yeraldin Hernández Osornio
Marisela Yeraldin Hernández Osornio 2018 年 7 月 11 日
como puedo poner un scope de simulink en guide?

カテゴリ

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

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by