check if mainAPP exist in app designer

7 ビュー (過去 30 日間)
piero
piero 2023 年 6 月 18 日
コメント済み: piero 2023 年 6 月 20 日
hi, i read this guide :
i want to know if Main App has been launched.. otherwise I launch it from here
  5 件のコメント
chrisw23
chrisw23 2023 年 6 月 20 日
Since Matlab R2020 you have the option to set the 'Single Running Instance' flag. Maybe this is a workaround for your problem.
"When Single Running Instance is selected and you run the app multiple times, MATLAB reuses the existing instance and brings it to the front rather than creating a new one. When this option is cleared, MATLAB creates a new app instance each time you run it and continues to run the existing instances. These run behaviors apply to apps that you run from the Apps tab on the MATLAB Toolstrip or from the Command Window.
When you run apps from App Designer their behavior doesn't change whether this option is selected or cleared. App Designer always closes the existing app instance before creating a new one."
piero
piero 2023 年 6 月 20 日
thanks

サインインしてコメントする。

回答 (1 件)

Walter Roberson
Walter Roberson 2023 年 6 月 20 日
No. MATLAB does not offer any any general mechanism to test whether variables of particular classes exist.
  1 件のコメント
piero
piero 2023 年 6 月 20 日
i created 2 tables in app designer The MAIN table A and the child table B inheriting data from A via input into the function
Question: when I develop table B as there are variables passed as a parameter of A how do I do the various tests on B without launching A? the development phase of B becomes very difficult that I have to launch table A all the time

サインインしてコメントする。

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by