Real-Time UI Updates in MATLAB Application Using Parallel Computing with Threading and App Property Variable Issues
7 views (last 30 days)
Show older comments
I’ve created an application that contains three panels, each with a separate job. I need to update the values in the UI in real-time, but I’m facing an issue because appdesigner does not support the threading concept, and it’s not supporting app property variables.
Instead of using the Parallel Computing Toolbox, are there any other options available or tips to help me access app property variables? I need to perform multiple tasks simultaneously in a single application. Kindly help me with that.
0 Comments
Answers (1)
SACHIN KHANDELWAL
on 3 Dec 2024
One possible way is to use callback or listener objects. When you have something to update, you just need to trigger the callback, and it can update the UI based on your needs. https://www.mathworks.com/help/matlab/creating_guis/write-callbacks-for-apps-created-programmatically.html
Additionally, I suggest using the "timer" function in MATLAB. The "timer" function can execute tasks at specified intervals, allowing you to perform background tasks without blocking the UI. Refer to the following MathWorks documentation for more information: https://www.mathworks.com/help/matlab/ref/timer.html
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!