GUI: problem with more GUIs opened
Show older comments
Hi, I created a GUI that accepts in input some data of a bigger dataset, it shows them in a table and then it does some computations. I have problems when I open more GUIs at the same time. When I do some operations on the first windows that I opened, the changes to be shown, are applied only in the last GUI opened. Do you know which is the problem? Thank you very much Marco
5 Comments
Geoff Hayes
on 13 Dec 2019
Marco - what is the relationship between the GUIs? How have you created your GUIs with GUIDE, programmatically, or with App Designer? Please provide more details.
Image Analyst
on 13 Dec 2019
You aren't using global variables of the same name in each of them, are you? Because global variables live in the global workspace and if you change it from one GUI, it will change it for all GUIs that use that global variable.
When you "do some operations on the first windows", are these operations being done by code in the first window on variables in the first window, or are you trying to do these operations from second/third GUIs on variables in the first window (variables existing in the scope of the first GUI only)?
And where are the "changes to be shown"? Are the changes supposed to be visualized in all the GUIs, just the first GUI, or just the GUI that caused the changes, or somewhere else (like a new figure window or something)?
Marco Magli
on 13 Dec 2019
"when I try to use the first GUIs that I have launched, the value of the selected item is use to fill the table in the last GUI opened"
Is that what it's supposed to do or is that the error you're describing in, "When I do some operations on the first windows that I opened, the changes to be shown, are applied only in the last GUI opened." ?
If that's the problem, where should the data go instead and what does your code look like that is assigning the data to the (wrong) GUI?
Image Analyst
on 13 Dec 2019
Marco Read this link then add your screenshots. We will understand better after we see something, don't you agree?
Answers (0)
Categories
Find more on Structures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!