LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Automatically launch the LabVIEW SVE when opening a LLB file

Solved!
Go to solution

How do I configure my Source Distribution build so that the LabVIEW Shared Variable Engine is loaded and all my shared variables are deployed?  I need to build my code into a LLB file, which when opened, automatically launches the top level vi and deployes all the shared variables.

 

I can do this for code that is compiled into an EXE file, but I cannot figure out how to do it for code compiled into an LLB file.

 

I am using LabVIEW 2009.

 

Also, how come when I click on the "Shared Variable Deployment" listbox item under my .EXE build settings, my software launches?  For some reason, the LabVIEW compiler launches my software while it is being built.  This only happens when my EXE uses the Shared Variable Engine.

   

Thanks,

Richard

 

0 Kudos
Message 1 of 5
(3,465 Views)
Add "useLLBManager=false " to you LabVIEW.ini, restart LV and your toplevel VIs should be launched when opening the llb.
0 Kudos
Message 2 of 5
(3,450 Views)

I already know about the "useLLBManager=false" LabVIEW.ini setting -- that works fine.  The problem I have is that the Shared Variable Engine isn't deploying my shared variables automatically.  Is there a VI I can call inside my program to force the Shared Variable Engine to deploy my variables?

 

Thanks,

Richard

 

0 Kudos
Message 3 of 5
(3,444 Views)
Solution
Accepted by topic author RichardBallantyne

I thought the problem is starting the top-level VI, not the deploying, sorry.

 

You can deploy the library using a invoke node with the "deploy library" or "deploy libraries" method under the application class. You simply need to give the path to the library then.

 

Unbenannt.JPG

 

 

Christian

Message Edited by Christian_M on 12-08-2009 04:00 PM
Message 4 of 5
(3,442 Views)
Thank you Christian for your solution!
0 Kudos
Message 5 of 5
(3,432 Views)