How to make 2 gui sharing the same handles structure

13 Ansichten (letzte 30 Tage)
Tutu
Tutu am 1 Mär. 2021
Kommentiert: Tutu am 22 Mär. 2021
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.

Akzeptierte Antwort

Allen
Allen am 1 Mär. 2021
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 Kommentare
Allen
Allen am 12 Mär. 2021
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')
Tutu
Tutu am 22 Mär. 2021
Thank you for the link. I think I can work that out.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by