03-03-2017 06:55 AM
Hello together,
I want to save a LLB automaticly without block diagram.
The LLB hast two top level VIs:
I created a source distribution and select "Remove block diagram":
And included the LLB:
As "Destination type" I selected "LLB":
After building the source distribution all block diagrams are removed - this is fine, BUT the new LLB has no top level VIs:
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
Solved! Go to Solution.
03-03-2017 07:06 AM - edited 03-03-2017 07:07 AM
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"!
03-07-2017 04:32 AM
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 :
And then set these VIs with your help to top level:
As you recommended I run this VI after build:
Again, Thanks alot for your help.
Kind regards from Germany
Tanja
03-07-2017 04:52 AM
03-07-2017 05:24 AM
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.
Viele Grüße aus Ittersbach
Tanja
03-07-2017 07:26 AM
03-08-2017 12:57 AM
Hi Norbert,
thanks for the link.
Kind regards
Tanja