09-04-2008 09:14 AM
Hi,
I would like to draw circles along a line. In order to do that I need to save the previous circles. I used the draw circle by radius.vi and added a for loop to it.
Thanks in advance,
Gaby
09-04-2008 09:45 AM
Hi Gaby,
do you want to create a picture in each iteration? You can use the "Picture to Pixmap" function and the "Write ... File" functions to store an image.
Hope it helps.
Mike
09-04-2008 09:51 AM
Dear Mike,
I have probably expalined myself poorly. I would like to see (live) the advancement of the circle and also all of the circles drawn before that. I think I nedd to use some kind of buffer, but I don't how.
Gaby
09-04-2008 09:58 AM
Hi Gaby,
you can use a shift register to build an image with the old values or you create an array of all single images.
See the attached example.
Hope it helps.
Mike
09-04-2008 11:52 AM - edited 09-04-2008 11:54 AM
The shift register should be for the picture directly, and you do not need to use Concatenate Strings to build a composite picture.
Other notes:
09-04-2008 03:00 PM
Heelo,
Thank you for all of the replies. I've tried doing the same thing with an XYgraph but without a lot of success. I do manage to draw the circle and it does move, but it does not save the previous ones. I'm attaching my VI (Iuse labview 8.0)
Thank yuo,
Gaby
09-04-2008 04:06 PM - edited 09-04-2008 04:07 PM
You seemed to have ignored each of my comments, and even had me add another one to boot:
So which way do you want it? Picture or XY graph? For the XY graph you need to build an array of waveforms, so that each circle is an element. Have you looked at the shipping examples? There is are numeours examples that cover the various graphs, including one that shows you how to draw multiple plots onto an XY chart.
Your VI, cleaned up is attached with some additional comments:
P.S. You may want to peruse the LabVIEW Style Guide.