Path: news.mathworks.com!newsfeed-00.mathworks.com!NNTP.WPI.EDU!elk.ncren.net!newsflash.concordia.ca!canopus.cc.umanitoba.ca!not-for-mail
From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Newsgroups: comp.soft-sys.matlab
Subject: Re: serial port and figure window
Date: Tue, 4 Mar 2008 18:32:35 +0000 (UTC)
Organization: National Research Council Canada - Conseil national de rechereches Canada
Lines: 17
Message-ID: <fqk4k3$7kk$1@canopus.cc.umanitoba.ca>
References: <fqk4ft$l39$1@fred.mathworks.com>
NNTP-Posting-Host: origin.ibd.nrc.ca
X-Trace: canopus.cc.umanitoba.ca 1204655555 7828 192.70.172.160 (4 Mar 2008 18:32:35 GMT)
X-Complaints-To: abuse@cc.umanitoba.ca
NNTP-Posting-Date: Tue, 4 Mar 2008 18:32:35 +0000 (UTC)
Originator: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)
Xref: news.mathworks.com comp.soft-sys.matlab:455350


In article <fqk4ft$l39$1@fred.mathworks.com>, tkeil  <tlkeil@vradc.com> wrote:
>Hi, I am trying to write code that will display an image in 
>a figure window until the viewer pushes a button on a 
>button box connected through a serial port. 

>I have tried using fread(obj,1) after the image is 
>displayed in the figure window. This works, but only if I 
>insert pauses in my code or step through using the 
>debugger. When I let the code run without pausing, the 
>image is not displayed in the figure window but the system 
>is waiting for a response from the button box.

Sounds like you might need some drawnow() calls to allow
events to be processed during the current callback.
-- 
   "Any sufficiently advanced bug is indistinguishable from a feature."
   -- Rich Kulawiec