01-27-2010 02:44 AM
Is there a way to save polymorphic VIs as single files? As far as I understood, the polimprphic VI is somehow a list of "links" to the different instances. Is there a way to include the instances on the "main" vi, and maybe access them via the polymorphic VI window?
Thanks
01-27-2010 02:50 AM
Would the LLB be useful?
Can you put all the VIs' instances in an LLB
01-27-2010 03:01 AM
Hi nihuyu,
thanks for replying. That should work, but it's not exactly the same...
Is there a way to do so without an LLB?
01-27-2010 03:11 AM
01-27-2010 04:34 AM - edited 01-27-2010 04:34 AM
Well, it's just to avoid having a long list of files in my folder...
In fact, that's exactly what an LLB is intended to do, but the LLB should be more a collection of different VIs related to the same topic (for example, the drivers for an instrument), and not a collection of VIs doing exactly the same thing on different data types.
Nevertheless, I'm going to implement nihuyu's solution.
Thanks to both.
01-27-2010 04:37 AM
01-28-2010 07:53 AM
Hi Gerdw,
I wasn't clear, sorry: I'm not speaking about a collection of polymorphic VIs, but about a single polymorphic VI (and his instances).
The problem is: you can build an LLB and obtain a single file, but if you save the LLB on your user.lib folder, and browse its contents, all polymorphic instances will be listed.
Isn't it a nonsense? Shouldn't only the "main" VI be displayed?
Alternatively, is there a way to hide the instances while browsing the contents of the LLB?
Thanks
01-28-2010 08:03 AM - edited 01-28-2010 08:07 AM
Hi xdaf,
I usually solve this issue by this procedure:
- I have my user.lib files in a different folder (in my local user path) and only edit the palette to include the VIs I need (This way it's much easier to backup all of my VIs.)
- I usually only put the polymorphic VI into the user.lib. All the single instances are located in a different folder and thus not seen in the user palette.
Disadvantage of this scheme:
When I install a new LV version I have to setup my user palette content again. Well, it's just 5 folders in the user palette... ![]()
01-28-2010 08:33 AM
Understood... but what in case you want to redistribute your VI (for example to your colleagues, or a wider community)?
Your proposed solution works, but is a workaround...
Thanks for the suggestion anyway.
01-28-2010 09:03 AM