- Add a listener to a certain block and have the callback somehow update the GUI. This approach could be very computationally intensive if you aren't careful. You may see your system slow down if you try and have the callback directly modify the GUI axes.
- Set up a timer and periodically poll the runtime object at a certain rate. This approach means you might "miss" some data, and depending on the polling speed you could see improved performance.
Spectrum Analyzer!! - How to access data/plots from a FFT scope real time
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Michael Mahadas
el 26 de Abr. de 2011
Editada: John Kelly
el 26 de Feb. de 2015
Hello everyone,
I am working on a graphic equalizer GUI that controls blocks in Simulink such as gains and audio filter inputs. The GUI operates perfectly, but I am working on a real time spectrum analyzer. I do not know how to access scope frames or data flow in real time. Essentially, I want to make the scope's information appear in the GUI's axes window. The GUI was designed using MATLAB's GUIDE
Any suggestions are appreciated.
I have looked into the Data Acquisition tool box, but I am under the assumption it does not work with 64-bit systems. Another idea was to some how sample the scopes frames and load them into the axes window in GUIDE, however I still do not know how to access the data real time or not.
Thank you, Rowan ECE
0 comentarios
Respuesta aceptada
Jarrod Rivituso
el 26 de Abr. de 2011
Editada: John Kelly
el 26 de Feb. de 2015
Simulink does allow you to access signal data from MATLAB during simulation via the use of runtime objects. Check out this doc link:
If I were you, I would either
Note that I have assumed here that you are trying to access simulation data from a simulation that is being run on your host machine, and not trying to access simulation data from a simulation on some other machine / processor.
3 comentarios
Kaustubha Govind
el 28 de Abr. de 2011
Have you also tried adding an event-listener function to PostOutputs and updating the GUI from that function?
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!