Thread Subject: Running two GUIs parallely

Subject: Running two GUIs parallely

From: Ashwini Deshpande

Date: 27 Nov, 2008 05:12:01

Message: 1 of 3

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

Subject: Running two GUIs parallely

From: Ryan Ollos

Date: 27 Nov, 2008 09:12:01

Message: 2 of 3

"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.

Subject: Running two GUIs parallely

From: Sherryl Radbil

Date: 1 Dec, 2008 12:49:01

Message: 3 of 3

Hi Ashwini,

You can learn about MATLAB's serial support here
http://www.mathworks.com/serial

Sherryl

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
urgent Ashwini Deshpande 27 Nov, 2008 00:15:03
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com