Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Most efficient way to continously update axes data in GUI
Date: Thu, 16 Jul 2009 21:17:17 +0000 (UTC)
Organization: 3dB Research Ltd
Lines: 16
Message-ID: <h3o5ct$5gc$1@fred.mathworks.com>
References: <h010cp$52a$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 1247779037 5644 172.30.248.38 (16 Jul 2009 21:17:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 16 Jul 2009 21:17:17 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 893118
Xref: news.mathworks.com comp.soft-sys.matlab:556102


"Dennis Nord" <dennis.nord@gmail.com> wrote in message <h010cp$52a$1@fred.mathworks.com>...
> Hello!
> 
> I have 2 axes and a total of 5 line children in my GUI which i populate with data using set(linehandle,'[x/y]data',[myvalues])... calls using an eventlistener to a simulink object (scope). Im using realtime windows target for control design applications.
> 
> This solution working very well, although it seems to be very resource consuming (i would like to update my plot faster than 10 times per second which is the current max before gui gets delayed from my model!
> 
> What would the fastest way be to continously update my lines? Is there any way to append the lines rather than resetting the entire x/y vector values each time? Can i make some configurations to my GUI to speed things up?
> 
> Any suggestions would be very appreciated.
> 
> Dennis

Hi Dennis.  Interesting problem.  I have been doing similar things lately.  Have you tried changing the renderer for your figure?  If you have openGL, this is often faster than the default.  If hf is the handle for your GUI figure, then call set(hf,'Renderer','openGL') and see if that helps.

Glen