I want a function to be repeatedly called within an AppDesigner application

15 ビュー (過去 30 日間)
Jeff Beckstead
Jeff Beckstead 2022 年 2 月 1 日
回答済み: Geoff Hayes 2022 年 2 月 1 日
I want to have an application that repeatedly calls a function. There are pauses in that function and it does various executions based on a defined state to handle continuous looping. Where do I place code that will be repeatly processed in an App Design script? I see how to do various tasks when an action occurs, but I want this function to run continually. Other buttons within the app will control the underlying code, but it needs to constantly be checking outside parameters.

回答 (1 件)

Geoff Hayes
Geoff Hayes 2022 年 2 月 1 日
@Jeff Beckstead - you could perhaps use a timer to periodically call your function. The timer might start when the app starts and so would exist for the lifetime of the app.

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by