LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle private VIs in packed libraries?

Solved!
Go to solution

Hi everyone, 

I have a DQMH library that i would like to build as packed library.

If i keep the standard DQMH scopes (with some folders as private) the built VIs do not work, if i set all the VI to be "public" they do work.

 

cpiccoli_0-1762532608988.png

 

 

As i use packed libraries in TestStand it is not optimal to have 100 different VIs of which only 10 are used.

 

Is there any way to include private VIs in the build or to "hide" some VIs?

Thanks in advance

0 Kudos
Message 1 of 6
(267 Views)

What makes you say the built version doesn't work? My company builds these modules into packed libraries with the default scopes all the time and they seem to work the same as the source versions.

0 Kudos
Message 2 of 6
(230 Views)

What version of LabVIEW are you using? I had this problem with VIMs being built into a PPL in LabVIEW 2019SP1: PPL will not build if a private VIM is in a virtual folder. That bug was fixed in 2020SP1.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(222 Views)

@avogadro5  ha scritto:

What makes you say the built version doesn't work? My company builds these modules into packed libraries with the default scopes all the time and they seem to work the same as the source versions.


As soon as i hit the "Start Module" the module does not run and i get an error related to DQMH synchronization.
If i change from "private" to "public" it immediately works, and the synchronization VIs are packed in those private folders.


 

0 Kudos
Message 4 of 6
(170 Views)

@crossrulz  ha scritto:

What version of LabVIEW are you using? I had this problem with VIMs being built into a PPL in LabVIEW 2019SP1: PPL will not build if a private VIM is in a virtual folder. That bug was fixed in 2020SP1.


LabVIEW 2021 SP1

0 Kudos
Message 5 of 6
(168 Views)
Solution
Accepted by topic author cpiccoli

@cpiccoli wrote:

@crossrulz  ha scritto:

What version of LabVIEW are you using? I had this problem with VIMs being built into a PPL in LabVIEW 2019SP1: PPL will not build if a private VIM is in a virtual folder. That bug was fixed in 2020SP1.


LabVIEW 2021 SP1


I have had issues in the past, specifically that version, where this option would erroneously remove needed members and cause breaks which manifested as exe builds that opened with broken arrow. Because DQMH has a separation layer between the main.vi and the public VIs, it's possible for the public VIs to not be broken while main.vi is broken, which manifests as errors from start module.vi.

 

So my suggestion is try unchecking "Remove unused members of project libraries" in the build spec. If this works, congratulations you have "won" checkbox roulette.

0 Kudos
Message 6 of 6
(118 Views)