Path: news.mathworks.com!not-for-mail
From: "Dennis Nord" <dennis.nord@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Most efficient way to continously update axes data in GUI
Date: Mon, 1 Jun 2009 16:42:01 +0000 (UTC)
Organization: Link&#246;pings Universitet
Lines: 11
Message-ID: <h010cp$52a$1@fred.mathworks.com>
Reply-To: "Dennis Nord" <dennis.nord@gmail.com>
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 1243874521 5194 172.30.248.35 (1 Jun 2009 16:42:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 1 Jun 2009 16:42:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1860772
Xref: news.mathworks.com comp.soft-sys.matlab:543990


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