matlab GUI: writing to a field in a different GUI

1 visualización (últimos 30 días)
Daniel
Daniel el 29 de Ag. de 2016
Comentada: Daniel el 30 de Ag. de 2016
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....

Respuesta aceptada

Geoff Hayes
Geoff Hayes el 29 de Ag. de 2016
  1 comentario
Daniel
Daniel el 30 de Ag. de 2016
Thanks. i was able to pass handles through setappdata(0,'name',gcf) and reading it on the other side

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Dialog Boxes en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by