LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Source distribution does not properly handle a folder of subVIs with "include if referenced"

I'm trying to create a source distribution that pulls subVIs from several different locations. I have the subVIs in folders in the project. I would like the source distribution to have the main VI in distrib\MainVI and the subVIs in distrib\Folder1\, distrib\Folder2\ and so forth. In the source distribution, I have the subVI folder's inclusion type set to "Include if referenced" and the "Set destination for all contained items" set to a sub-folder of the distrib folder. The destination does not seem to propagate correctly to the VIs contained in the folder. Every subVI's destination is set as the default "same as caller" and the resulting source distribution winds up flat with everything in the main folder. This is not the case if I set the subVIs destination individually (a nuisance and error-prone) or if the subVI folder is set to "Always include" (which leads to unused VIs in the source distribution).

I've attached a screenshot and an example project. This is in 8.20. I don't have 8.2.1 to test with, but this does not seem to be in the list of fixed bugs in the readme.


Download All
0 Kudos
Message 1 of 3
(2,564 Views)

Did you choose to preserve the hierachy?

Ben

Message Edited by Ben on 07-17-2007 11:56 AM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,555 Views)
Actually, I'm using Custom. Using Preserve Hierarchy saves the entire hierarchy, drive letters and all. I can move the folders around, but again, that's an extra step.

What I'd like to do is have:

<build root>\MainVI.vi
<build root>\Project SubVIs
<build root>\Device Driver - Widget\
<build root>\OpenG\
<build root>\Utilities\
etc...

I have custom destinations set up for each aspect of the project. Am I just misunderstanding how this is supposed to work?

0 Kudos
Message 3 of 3
(2,537 Views)