|
"Ashwini Deshpande" <vd.ashwini@mathworks.com> wrote in message <ggla71$hgi$1@fred.mathworks.com>...
> Hi,
>
> I need run 2 GUIs parallely. The following points give the basic idea of my requirement,
>
> 1. I have 2 guis. one is input panel (which gets i/p from user)and other one is display panel (which displays warnings and some plots).
> 2. Display panel gui should always keep on looking for data from input panel gui.
> 3. At the same time status panel should also keep looking for the input from serial port.
>
> Can anybody tell me how do i achieve this???? It would be great help for me.
>
> Thanks in advance,
> Ashwini
One way to accomplish the 'looking for data' is to run a timer object to get data from the Input GUI and put it in the Display GUI. Another option would be to program callbacks in the Input GUI that cause the Display GUI to be updated when update events occur.
If you need to share data among multiple figure, having global handles structures for each GUI is a straightforward way to accomplish this. The only other way I can think of besides global structures is to store the data, or references to the data (handle objects), in appdata for root {i.e. getappdata(0), setappdata(0, Data)}.
I haven't worked with acquiring data from a serial port, but I have seen some examples on the file exchange that implement this. I think you would have to run a timer object, and if the data rates are fairly high, then you might need some of the analoginput functions of the data acquisition toolbox.
|