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

조회 수: 6 (최근 30일)
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.

답변 (1개)

SACHIN KHANDELWAL
SACHIN KHANDELWAL 2024년 12월 3일
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

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by