- 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 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Aman
2024-3-14
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!