How do I get the value from output port in SIMULINK in GUI?

조회 수: 6 (최근 30일)
Rinachi Garg
Rinachi Garg 2013년 8월 7일
댓글: Joshua Kalima 2022년 1월 2일
I have a GUI which is linked to Simulink Model. I want to read the output ports in SIMULINK model and display it in GUI. I am trying to use get_param but it gives me error. Can anyone help me in this?
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2013년 8월 7일
Does the GUI need to display the outputs continuously as they're changing during simulation, or do you just want to display the full results after simulation stops?
Joshua Kalima
Joshua Kalima 2022년 1월 2일
The GUI need to display the outputs continuously as they're changing during simulation.
Please help

댓글을 달려면 로그인하십시오.

답변 (1개)

Arunkumar Muthukumaran
Arunkumar Muthukumaran 2015년 12월 19일
Connect the signal to output port to a matlab function in simulink. The output which you need is now an input to MATLAB function. In MATLAB function, update the GUI handles with the input of function. This will let you update GUI continuously after every timesetep.
  댓글 수: 1
Trick Verzosa
Trick Verzosa 2016년 8월 24일
How do you connect the signal to output port to a matlab? I'm currently doing the same thing, connecting the model to a gui. I accomplished linking the edit boxes for inputs to the model(I used the Constants block), but when getting the results after simulation I cannot display these in the GUI (I used the To Worskpace block).

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by