LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Defining "Top Level" VI in LLB created with application builder source distribution?

Solved!
Go to solution

Hello together,

 

I want to save a LLB automaticly without block diagram.

 

The LLB hast two top level VIs:

 

1.png

 

 

I created a source distribution and select "Remove block diagram":

 

2.png

 

 

And included the LLB:

 

3.png

 

 

As "Destination type" I selected "LLB":

 

4.png

 

 

 

After building the source distribution all block diagrams are removed - this is fine, BUT the new LLB has no top level VIs:

 

5.png

 

 

 

So I always must set the top level VIs after building manually to top level VIs.

 

Is it possible to define in source distriburion which VIs should be top level VIs after building?

Is there any posibility to do this with VI-Scripting (I searched for this but found no propertys or mehtods to set VIs to top level in a LLB)?

 

Kind regards from Germany

Tanja

 

0 Kudos
Message 1 of 7
(4,722 Views)
Solution
Accepted by topic author Tanja_Troescher

Hallo Tanja,

 

in vi.lib\utility folder you find the libraryn.llb, which contains/exposes a lot of LLB manager functions. One of those functions is named "Librarian Set Info", which you can use to set the top level property of VIs in your LLB…

 

When you create your AppBuilder specs you should be able to call a VI after the build process (in the "pre/post build actions" section): write a VI, which uses the Librarian to set the "top level" for the VIs you want to be "top level"!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 7
(4,708 Views)

Hi GerdW,

Thanks alot for your help.

How did you know to look inside the libraryn.llb?

(I found it neither in the help nor in the quick drop search.)

 

Now I made a VI which automaticly detect which VIs are "always included" in the source distribution :

6.png

 

 

 

And then set these VIs with your help to top level:

7.png

 

 

As you recommended I run this VI after build:

8.png

 

 

 

Again, Thanks alot for your help.

Kind regards from Germany

Tanja

 

 

 

 

0 Kudos
Message 3 of 7
(4,649 Views)

Hallo Tanja,

 

langjährige Erfahrung und aufmerksamens Lesen von Forumsbeiträgen…

😄

Best regards,
GerdW


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

Hallo GerdW,

 

ja über die Foren habe ich auch immer mal wieder was tief in der vi.llib verborgenes gefunden, und mich jedesmal gefragt, wie die Leute das gefunden hatten.

Daher dachte ich, ich frage nun mal nach, ob es nicht doch noch irgendwo ne Doku für die vi.lib gibt, und man so bescheid weiß was für Schätze dort verborgen sind. Smiley LOL

 

Viele Grüße aus Ittersbach

Tanja

0 Kudos
Message 5 of 7
(4,641 Views)

Hidden Gems in vi lib

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 6 of 7
(4,633 Views)

Hi Norbert,

 

thanks for the link.

 

Kind regards

Tanja

0 Kudos
Message 7 of 7
(4,622 Views)