Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
Rinachi Garg
Rinachi Garg el 7 de Ag. de 2013
Comentada: Joshua Kalima el 2 de En. de 2022
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 comentarios
Kaustubha Govind
Kaustubha Govind el 7 de Ag. de 2013
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 el 2 de En. de 2022
The GUI need to display the outputs continuously as they're changing during simulation.
Please help

Iniciar sesión para comentar.

Respuestas (1)

Arunkumar Muthukumaran
Arunkumar Muthukumaran el 19 de Dic. de 2015
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 comentario
Trick Verzosa
Trick Verzosa el 24 de Ag. de 2016
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).

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by