Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Continuous polling with RS232 Matlab GUI
Date: Fri, 29 Feb 2008 12:05:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <fq8sde$g79$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 1204286702 16617 172.30.248.35 (29 Feb 2008 12:05:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 29 Feb 2008 12:05:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1226302
Xref: news.mathworks.com comp.soft-sys.matlab:454519



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