Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: GUI: hangs up
Date: Mon, 8 Oct 2007 16:15:53 +0000 (UTC)
Organization: Univ Paul Sabatier
Lines: 49
Message-ID: <fedl3p$373$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1191860153 3299 172.30.248.35 (8 Oct 2007 16:15:53 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 8 Oct 2007 16:15:53 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 463134
Xref: news.mathworks.com comp.soft-sys.matlab:431838



Hello!
I have a problem with a GUI running in MATLAB 7.0. It hangs
when I execute minimization routine through it. The
description of GUI is as follows.

The GUI is created using GUIDE for least squares
minimization code. The code determines model parameter by
minimizing the difference between observed and model
predicted values. The GUI preprocesses the data, set
minimization solver options and plots end results . The top
level figure contains  6 uipanels which in turn contains
several uicontrol objects like editable text, push button,
etc and menubar. To simulate TAB like environment each
uipanel is made visible when corresponding panel name is
selected in menubar and other visible status of other
uipanels is set to 0.

Snapshots of this GUI can be seen at 
http://www.mip.ups-tlse.fr/~parte/MATLAB_PROBLEM/GUI_Details.pdf

The problem is when I start running the minimization solver,
which performs number of iterations,  the GUI figure doesn't
show uicontrol object properly (See the last snapshot) and I
get message that GUI is not responding.

After every iteration the solver updates the listbox and
progress bar. There is a STOP button to stop solver on user
demand. When iterations are being carried out, the GUI
doesn't respond immediately. However if iterations are
interrupted using CNTRL+C at command prompt, all uicontrol
objects are visible and one can see that listbox panel and
progress bar is updated till latest iterations. (See
snapshot on page 2)

I tried using "drawnow" function at the end of iteration but
   the problem persists. What could be the reason behind
this? Is it possible to overcome this behaviour and provide
clean GUI? 

The datasets being used are small, about 600 observations
and model used is simple which has 15 parameters and
involves inversion of 5X5 matrix (carried out usig "/"
operator).
The laptop on which code is run has 2GB RAM, 
Intel Core 2 duo, T7200, 2GHZ processor.
Java VM Version: Java 1.4.2_04 with Sun Microsystems Inc. 
YP
---