How to make 2 gui sharing the same handles structure
8 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I am pretty happy with my way to build up GUI with matlab except that I would like have the possibility to not have "one thousand" edit boxes, or else, impeding my camera display for instance: have to reduce the size of my display for including edit boxes; and in general it is something I would like to do for other hardware control: one window/figure per hardware.
What I would like is to be able, by a pushbutton for exemple, to open an other window which contains a bunch of parameters to set. I can either let it open while it is still updating my main GUI and these values can be initialised from the main too.
Thanks for your suggestions.
0 件のコメント
採用された回答
Allen
2021 年 3 月 1 日
If you are using GUIDE to build your applications, then my suggestion would be to create a separate "Parameters" GUI application that opens with the callback for the push-button. You can pass the handles variable and/or just the necessary separate variables input the opening function of the "Parameters" application. After completing your adjustments to the parameters, then you can pass the necessary variables back to the main GUI with a push-button or closing function callback.
If you are using App Designer this becomes a bit more straight forward and can be accomplished by using the tab-panel object and placing your parameter edit boxes on their own tab window.
6 件のコメント
Allen
2021 年 3 月 12 日
Tutu,
While trying to find documentation describing how the uiwait and uiresume functions are utilized within GUIDE GUIs, I came across the discussion in the link below. I have not tried to use this method, but have some familiarity with using setappdata and getappdata functions and think this may be a more simple approach.
setappdata(0,'MyStruct',Struct)
getappdata(0,'MyStruct')
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!