How can I quickly pass the output of a Simulink block to a GUI?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I currently have a simulink model in which a custom matlab function block performs some signal processing on a frame of data and then saves the results to the workspace with every iteration with the "assignin" command.
I then have a GUI, which I made in GUIDE, that uses a timer object to repeatedly pull this data from the workspace and display it in a variety of ways with the "evalin" command.
This works fine, but it is a little slow. I know I can read object parameters of a simulink block with my gui directly with the "get_param" command.
Is it aso possible to read the output of blocks in this way?
That is, can I employ a more direct or continuous method to read the output of the simulink blocks into my GUI without reading/writing to the workspace?
Thanks!
-Will
0 comentarios
Respuestas (2)
Azzi Abdelmalek
el 30 de Abr. de 2013
get_param allows to read block parameters, the block output is not a parameter
3 comentarios
Azzi Abdelmalek
el 30 de Abr. de 2013
you can save your output to workspace(the fastest way) or to a file,
Rey
el 3 de Mayo de 2013
Have you tried using an event listener? Check out the link below and do some googling, I guess it is what you are looking for:
0 comentarios
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!