LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

saving polymorphic

Hi,
 
I've just created my first polymorphic vi. Each of the Instance VIs are located in a single .LLB.
When I saved the polymorphic vi, I placed it in the same .LLB. I thought that this would be reasonable because everything is in one place.
 
I Don't like this though.
When I want to place the polymorphic on my block diagram, I open the Function Palette and navigate to my User Libraries. The .LLB shows up as a Palette menu in my User Libraries. Clicking on this Palette menu shows the polymorphic vi and all of the instance vis too. This is not what I want to see.
 
It looks to me that I really should save the polymorphic vi outside of the .LLB that contains all of the instance vis. Secondly, I should relocate my .LLB (with the instances) somewhere other than my User Libraries folder so they don't clutter up my Function Palette.
 
What do you recommend for "good practice" regarding how I should organize my polymorphic vis and their instance vis?
I'm using LabVIEW 8.5 with quarterly maintenace and I want to keep it as simple as possible to migrate my vis to new LabVIEW revs.
 
Tobin
0 Kudos
Message 1 of 6
(2,879 Views)
I like your idea.
________________________________________________________

Use the rating system, otherwise its useless; and please don't forget to tip your waiters!
using LV 2010 SP 1, Windows 7
________________________________________________________
0 Kudos
Message 2 of 6
(2,842 Views)
Hi Tobin,
 
That sounds like a good solution to me. 
Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 3 of 6
(2,829 Views)

Thank you for your comments.

I've decided to organize my polymorphic vis like this:
One .LLB for all "instance vis" called <companyname>Instances.LLB. This .LLB is located in:
C:\Program Files\National Instruments\<companyname>Utilities.

I have a second .LLB called <companyname>PolyUtilities.LLB that will be located in the User.Lib folder.
This will contain all the vis that I have bothered to make a top level polymorphic. I'm listing them as utilities because I want to segregate the vis that have a lot of reuse potential from the vis that will have a single purpose and short life span.

0 Kudos
Message 4 of 6
(2,820 Views)
Another possible solution would be to put your instances in a separate LLB in the same location, but begin the LLB's name with an underscore "_" character.  The underscore prevents the automatic palette display of items placed in user.lib.  It also works on folders, if you'd rather use those than LLBs.
Message 5 of 6
(2,806 Views)

Thank you.

That's good information.

0 Kudos
Message 6 of 6
(2,798 Views)