|
Hi Glen, Dennis,
I am doing something similar. I have an axes object, and am plotting 4 fixed circles and one with increasing radius. Its like a ripple going out... and some fixed circles... and once the ripple reaches the edge, it finishes one iteration...then it will start again from the center... and it will keep on going in an infinite loop...
but it seems that by default my system takes the renderer to be "painters"... and in this case, the speed of the simulation is good for the first two iterations...but after that it really slows down...
i tried using OpenGL, but the simulation slows down from the first iteration itself, and it is worse than using "painters"...
I am not sure if any of you faced a similar problem...
-Sagar
"Glen Rutledge" <grutledg@shaw.ca> wrote in message <h3o5ct$5gc$1@fred.mathworks.com>...
> "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
|