Real-Time UI Updates in MATLAB Application Using Parallel Computing with Threading and App Property Variable Issues

6 visualizaciones (últimos 30 días)
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.

Respuestas (1)

SACHIN KHANDELWAL
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

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Productos


Versión

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by