Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Plotting a real time graph
Date: Fri, 10 Jul 2009 12:54:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 20
Message-ID: <h37dl9$cpe$1@fred.mathworks.com>
References: <ggosqi$n30$1@fred.mathworks.com> <23963555.1227883427711.JavaMail.jakarta@nitrogen.mathforum.org>
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 1247230441 13102 172.30.248.38 (10 Jul 2009 12:54:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 10 Jul 2009 12:54:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1856123
Xref: news.mathworks.com comp.soft-sys.matlab:554417


arindam <goswamiarindam@gmail.com> wrote in message <23963555.1227883427711.JavaMail.jakarta@nitrogen.mathforum.org>...
> Thank you Oliver and Ryan,
> 
> I now have an idea of how to proceed...
> I will implement time interval based callbacks which will
>   1) read the input buffer of the serial object
>   2) callback the stripchart function
> That should give me a real time plot with a rolling window
> :)
> If it works, I will share the results with you this Monday.
> Thanks again

Hello to everybody,

I've done the same thing as you: I receive data from a serial port (by USB converter) on my notebook and I plot them "real-time" with stripchart (it works good). My problem is that I receive data every 5 ms, so Matlab is not able to follow this tempistic and I observe a "real time" graphic with a big delay. In particular, each fscanf to read data needs about 20 ms. 
The question is the follow: is there an instruction similar to fscanf but faster?

Thanks

Cristian Zivieri