Real-Time UI Updates in MATLAB Application Using Parallel Computing with Threading and App Property Variable Issues
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (1)
SACHIN KHANDELWAL
il 3 Dic 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 Commenti
Vedere anche
Categorie
Scopri di più su Develop Apps Using App Designer in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!