LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace lvlib with lvlibp programmatically

Hello,

 

in the project explorer there is the possibility to do a "Replace with a packed library" from the context menu.

How can I do this programmatically?

 

Thank you.

 

Christian

0 Kudos
Message 1 of 8
(3,727 Views)

Hello Christian,

 

It is theoretically possible to enable the scripting option in LabView and work in the development environment. With this option you can do VI-Scripting. But are you really sure you want to do this? And why? It is not trivial.

You can enable the VI-Sripte in the Project explorer >> Tools >> Options >> VI-Server >> VI-Skripte. Unfortunately this is the only support I can give.

 

Best Regards

 

Jerry

 

Message 2 of 8
(3,672 Views)

Hello Jerry,

scripting is allready enabled. Until now I only use scripting for automatic creation of VIs and TypeDefs.

I think triviality is not the point. I have a large project implementing a plugin architecture based on lvclasses. Over the last years it was only run in the development system. The customer wants to run it stand alone now. So I have reorganized the plugin interface into one single lvlibp and a relatively small executable. I have converted some of the key plugins to lvlibp by hand and all worked fine. The issue is, converting all plugins by hand would take too much time and is due to the human factor not robust enough.

So I have begun to write a converter and the very last problem I need to solve is this single simple mouse click on "replace with a packed library".

Best Regards

Christian

 

Christian

 

0 Kudos
Message 3 of 8
(3,659 Views)

Hi Christian,

 

because I'm not familiar to scripting and your request is quite challenging, my suggestion is to make a thread in the LAVA-forum. There are a lot of advanced specialists. Probably you can get a solution from them.

 

http://lavag.org/

 

Kind Regards

 

Jerry

 

 

 

0 Kudos
Message 4 of 8
(3,654 Views)

I have a specific use case for this, and was wondering if anyone figured out how to do it. My Google search does not turn up much other than this thread.

 

My use case: I have  main code branch that is not ready for LVLIPB's because the architecture is not 100% complete. However, we are release an Executable build on that relies on a pluggable actor framework architecture. Currently I manually branch the code, replace all LVLIB's with LVLIBP's then build additional LVLIPB's from that code and go back and replace the LVLIB's. At that point my code is now ready to be build as an executable with plug-ins. This process takes about 1-2 hrs to complete. This process works and works well repeatedly, it is just time consuming due to the relining. If I could just off load it to another PC that would enable to me to make additional bug fixes or work other issues in the main code branch. Currently we build about once a day or two for final release testing.

 

Any help in to script this would be much appreciated.

 

 

Thanks!

 

Brian G. Shea
Certified LabVIEW Architect
0 Kudos
Message 5 of 8
(3,570 Views)

If I hear you correctly you wish to script a *lvlibp from an existing *.lvlib then replace the *lvlib in the caller *lvproj with the new *lvlibp? 

 

Not that I  have an easy solution

 

I just wanted to clarify what you need.


"Should be" isn't "Is" -Jay
0 Kudos
Message 6 of 8
(3,553 Views)

Sure, i can work with that!!! I have projects setup that build the lvlipb's from lvlib's but if i can script the entire process that would be even better.

 

Thanks!

Brian G. Shea
Certified LabVIEW Architect
0 Kudos
Message 7 of 8
(3,548 Views)

Hey Brian
I'm looking at almost the same thing right now. I want to be able to script new .lvlib from a "template .lvlib" so that it adds into a .lvproj as a new .lvlib completely separated from the template .lvlib. 

Did you ever figure out how to do this with scripting or something else? 

 

Cheers

Henrik

0 Kudos
Message 8 of 8
(3,408 Views)