LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI of the Day (9/16/2009) - Draw Multiple Lines.vi

Today we are tapping into the power of the Picture Control, often seen as the last resort when you need some fancy control or polar plot.  The VI for today is "Draw Multiple Lines.vi".  When I gave the example for Re/Im to Complex, I threw a picture on there using the Draw Multiple Lines VI to connect the points in a filled polygon.  I had no idea what to expect, both from the math and the polygon filling procedure used by this VI.  I was very impressed on both counts so I made another example to play around with (I mean systematically explore) the capabilities.  In fact here are two examples, the second one is a VI I use to create regular polygons.

 

VIOTD groundrules are here

 

Note: Until now I have been using a very old LV version.  When possible (ie. not recursion), which LV version should I use for posting examples?  Today I chose LV8.6, let me know if you'd prefer something else.

Download All
Message 1 of 6
(3,853 Views)
Oops, I posted an experimental version of the sketch VI.  As an exercise for the reader, it looks much better if the lines are drawn after the fills.
Message 2 of 6
(3,839 Views)

Thanks Darin!

 

As shown in my Picture Control Thread, I am a fan of the Picture Control and the Draw multple...

 

So Q to others....

 

It is called a Picture Control but is most often used as an indicator. I'd like to hear stories of it being used as a Control.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 6
(3,790 Views)

I remembered this link popping up in a discussion of 2-axis controls.

 

 http://decibel.ni.com/content/docs/DOC-1683

 

0 Kudos
Message 4 of 6
(3,781 Views)

Might as well empty my harddrive, here is another use for the Draw Multiple Lines VI.  As for making it a control, I have had a few ideas about making this one "interactive" and I am sure a few others might as well.

Download All
Message 5 of 6
(3,756 Views)
Yeah, I really miss those days where we could rate posts by stars so I could one star that last message and its VI's.  Smiley Wink
Message 6 of 6
(3,731 Views)