LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving polymorphic vi as single file

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

0 Kudos
Message 1 of 13
(4,641 Views)

Would the LLB be useful?

 

Can you put all the VIs' instances in an LLB

Best Regards

Hu Yu
Message 2 of 13
(4,639 Views)

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?

0 Kudos
Message 3 of 13
(4,634 Views)

Hi xdaf,

 

well, each instance of a polymorphic VI is a VI - you can save them as individual file or collect them in a LLB. No other choices.

 

Why do you want to have them in one file?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 13
(4,630 Views)

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.

Message Edited by xdaf on 01-27-2010 11:34 AM
0 Kudos
Message 5 of 13
(4,614 Views)

Hi xdaf,

 

isn't "a collection of different VIs related to the same topic" a perfect description for your polymorphic VI collection?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 13
(4,610 Views)

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

0 Kudos
Message 7 of 13
(4,585 Views)

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... Smiley Wink

Message Edited by GerdW on 01-28-2010 03:07 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 8 of 13
(4,581 Views)

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.

0 Kudos
Message 9 of 13
(4,573 Views)

Hi xdaf,

 

there's only one collegue to share the user.lib ( Smiley Wink or Smiley Sad ?), so no problem here (it's a one-time operation).

 

Otherwise I only hand out executables...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 13
(4,566 Views)