- https://in.mathworks.com/help/matlab/ref/handle.addlistener.html
- https://in.mathworks.com/help/matlab/ref/handle.notify.html
Send multiples data and plot from .m script to AppDesigner
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am writing a code in a .m script. From there, I generated a plot and get several different values that I wanted to display them at my AppDesigner. How can I send multiples data and plot from .m to AppDesigner? And is it possible to do it live if the data I generated in the .m script is also generated live from esp32?
0 comentarios
Respuestas (1)
Aman
el 14 de Mzo. de 2024
Hi Siti,
As per my understanding, you want to send data in real time from a MATLAB script to the app designer for creating plots in the app.
In order to do that, you can use the event-based approach. You need to attach a listener to the app designer end using the "addlistener" function on the startup of the app using the "startupFcn" callback. In the MATLAB script, you need to use the "notify" function to publish the data to which the observer will listen.
You can refer to the below two links to learn more about the "addlistener" and "notify" functions.
I hope this helps!
0 comentarios
Ver también
Categorías
Más información sobre Develop Apps Using App Designer 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!