LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Darin's Weakly Nugget - 1/18/11

Here is one that many of you have probably come across, and an LLB that I could have probably milked for several weeks.  Inside the vi.lib/picture/PictureSupport.llb you will find the RectPalette.vi.  Not only is this chock-full of useful VIs, it is an example of a Tree/Root/Catalog VI.  This is what inspired me to collect the useful VIs I find in vi.lib into an easy to reach VI, organized by group.

 

RectPalette.png

 

Whether you are working with 2D pictures, or dealing with control positions and panel bounds there are a lot of useful VIs here, and I am probably not the only one who recreated many of them without realizing it.  Most of them are fairly straightforward, but the bundling and unbundling make some of the BDs a bit unsightly.  My thought here is that "You can't hide from the math, but you can hide the math".  Once again, I may have fewer wire crossings in my version, but they win the icon contest my a mile. 

 

My personal favorites here are RectSize.vi, RectCentroid.vi, and ... let me just say, I like them all.

Message 1 of 5
(4,025 Views)

After reading your nuggets, I think I'm just going to set up LabVIEW to load every frickin' *.llb to my palette at startup. I mean, it may take 15 minutes for LabVIEW to boot up, but I'd stop missing all these hidden gems with a simple qd or bd palette search!Smiley Tongue

0 Kudos
Message 2 of 5
(3,915 Views)

I just stumbled on these weakly nuggets.  I've rewritten no fewer than 5 of these VI's.

--
Tim Elsey
Certified LabVIEW Architect
Message 3 of 5
(3,534 Views)

For those who don't feel like dealing with this, OpenG has a package which exposes these VIs as a palette.


___________________
Try to take over the world!
Message 4 of 5
(3,500 Views)

 


@tst wrote:

For those who don't feel like dealing with this, OpenG has a package which exposes these VIs as a palette.


Thanks for the info.  Unless I'm missing something they forgot to add PointInRect.vi, so I just added it myself.

 

--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 5 of 5
(3,460 Views)