Path: news.mathworks.com!not-for-mail
From: "SmartEngineer " <smartengineer@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Continuous polling with RS232 Matlab GUI
Date: Sun, 30 Mar 2008 02:39:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 25
Message-ID: <fsmug5$e0l$1@fred.mathworks.com>
References: <fq8sde$g79$1@fred.mathworks.com>
Reply-To: "SmartEngineer " <smartengineer@mathworks.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1206844741 14357 172.30.248.38 (30 Mar 2008 02:39:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 30 Mar 2008 02:39:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 317601
Xref: news.mathworks.com comp.soft-sys.matlab:459886



"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


You may look at the post "Read Serial Port from RS232 
Continuously" under serial port tag.

Hope that helps you.