LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI of the Day (10/14/2009) - Draw Circle By Radius VI

In between trips, so a few more installments.  This morning I am killing two birds with one stone, I am using VIOTD to explore an interesting effect I read about on the plane yesterday.  The VI for today is "Draw Circle By Radius.vi".  The VI does some useful math so you can specify a center and radius of your circle instead of the bounding rectangle required by Draw Arc.vi.

 

In my example today I am generating a sunflower pattern using the golden mean.   Successive points are drawn using the golden angle as the angular displacement.  The golden angle is simply 2 Pi * golden mean.  As you may recall, the golden mean is one of those interesting numbers that crop up in nature.  What struck me was just how "special" it happens to be.   The scale control allows you to adjust the angle away from the golden angle, see what happens with just a 0.2% change (scale = 1.002).  I am also reminding you of a couple of useful tips we've seen along the way, using Concatenate Strings to generate the picture and the ease of using complex math to perform polar to cartesian conversions.

 

VIOTD groundrules here

Message 1 of 1
(3,211 Views)