Path: news.mathworks.com!not-for-mail
From: "Jason " <Jbryant@illumina.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Continuous polling with RS232 Matlab GUI
Date: Fri, 29 Feb 2008 12:08:01 +0000 (UTC)
Organization: Illumina
Lines: 23
Message-ID: <fq8sj1$i90$1@fred.mathworks.com>
References: <fq8sde$g79$1@fred.mathworks.com>
Reply-To: "Jason " <Jbryant@illumina.com>
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 1204286881 18720 172.30.248.35 (29 Feb 2008 12:08:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 29 Feb 2008 12:08:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1217570
Xref: news.mathworks.com comp.soft-sys.matlab:454520



"jim smith" <jimsmith@mathworks.com> wrote in message 
<fq8sde$g79$1@fred.mathworks.com>...
> I've made a GUI in matlab to read data via RS232 and plot 
> it to a graph. The only problem is I have to keep 
pressing 
> a button to send a 'getdata' command to my 
microcontroller 
> via RS232 so it sends the data back. I want to implement 
> this in continuously/real time so I don't have to keep 
> pressing a button to communicate with my device. I've 
> written while loops and that just freezes my program, 
i've 
> also tried a checkbox so if it's checked it gets data and 
> that also freezes the GUI. 
> 
> Just wanted to know if there is a successful way to get 
> real time data without crashing my program, thanks

Hi Jim, unfortunately I can't help you out but I also am 
interested in plotting RS232 transported data would you be 
able to share your code with me?
thnaks
Jason