matlab GUI: writing to a field in a different GUI
1 次查看(过去 30 天)
显示 更早的评论
HI, I have a GUI which opens a serial communication. When a message is recieved, a special interrupt function is called which handles all the incoming messages. For example:
- if i get 01 0A i write to box X the value A
- if i get 02 0B i write to box Y the value B
i call this function like this:
handles.SerPIC.BytesAvailableFcn = @(src,event) intcon1(src,event,handles.input1,handles.input2);
if user presses a button, a secong GUI opens and does some things
Now, lets say that i want to write B to a box Z which is in GUI number 2. How can i do that? The problem (as i see it) is my interrupt function needs to get before hand all inputs, but i make the BOX Z handle visible only after....
0 个评论
采纳的回答
Geoff Hayes
2016-8-29
Daniel - see https://www.mathworks.com/matlabcentral/answers/146215-pass-data-between-gui-s which should get you started.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!