10-27-2013 07:10 AM
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
10-29-2013 11:31 AM
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
10-30-2013 03:46 AM
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
10-30-2013 04:43 AM
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.
Kind Regards
Jerry
02-05-2014 10:59 AM
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!
02-05-2014 11:42 AM
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.
02-05-2014 12:44 PM
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!
03-03-2015 12:02 PM
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