Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Continuous polling with RS232 Matlab GUI
Date: Sat, 29 Mar 2008 20:46:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 23
Message-ID: <fsm9qa$khs$1@fred.mathworks.com>
References: <fq8sde$g79$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1206823562 21052 172.30.248.38 (29 Mar 2008 20:46:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 29 Mar 2008 20:46:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1333988
Xref: news.mathworks.com comp.soft-sys.matlab:459854



"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, i m doin a similiar gui, can u share wit me ur 
codes, i will b very grateful!