Real-Time UI Updates in MATLAB Application Using Parallel Computing with Threading and App Property Variable Issues
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
SACHIN KHANDELWAL
el 3 de Dic. de 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 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!