09-08-2022 01:43 PM
I would like to create a compiled LabVIEW application (Exe) that is modular in the sense that it that can load other external, LV-compiled modules at runtime. What is the best option? I see that I can compile a DLL with from LV code, but get the sense that this is usually when you wan to call LV created code in another programming language. Using the Call Library Function node seems a cumbersome way to call LV compiled code. I know I can write a LV Exe to dynamically load a .VI file at runtime (provided the VI's compiled code has not been separated). This seems like a better approach but don't really want to distribute the "source" code. Packed Project Libraries seems overkill and geared towards code sharing. Of course I can compile other Exes an load them but then have to deal with inter-process communications.
09-08-2022 01:48 PM
Hi Edu,
@EduNI wrote:
This seems like a better approach but don't really want to distribute the "source" code. Packed Project Libraries seems overkill and geared towards code sharing.
So you don't want to share source code, but you think lvlibp is "overkill"?
They just provide a clean way to distribute compiled VI libraries without their source code…
09-08-2022 02:26 PM
I agree with GerdW. You're over-complicating this.
A packed project library is exactly what you're looking for. In your final released code it's a single file, it doesn't contain your source code with it because it's compiled, and it's easily callable from your main LabVIEW application.
09-08-2022 02:42 PM
Third vote for packed project libraries. They are great for implementing plugins.
09-08-2022 02:43 PM
Thanks for the quick replies. An LVLIB seems overkill from the perspective: if I want to create an LVLIB for a single wouldn't I have to create a separate project just for that one VI? When I try to create a Packed Project Library it tells me I need to include a Top Level Library. So I need to create a library before I can create a library?
09-08-2022 02:48 PM - edited 09-08-2022 02:50 PM
@EduNI wrote:
So I need to create a library before I can create a library?
Packed project library is the compiled version of a LV Library. So yes, you need something to compile before you can compile it.
@EduNI wrote:
if I want to create an LVLIB for a single wouldn't I have to create a separate project just for that one VI?
Generally a packed project library will have multiple VIs in it, not just a single. What you're suggesting would be the equivalent of creating a .DLL with a single call. Yes it would be doable, but it would be cumbersome in either case.
09-08-2022 03:29 PM
Another vote for PPL, it is the defacto, proven, reliable and scalable way to go for plugins
09-08-2022 03:38 PM
@santo_13 wrote:
Another vote for PPL, it is the defacto, proven, reliable and scalable way to go for plugins
-Santhosh
Semiconductor Validation & Production Test
Soliton Technologies
NI CLD, CTD
LabVIEW + TestStand + TestStand Semiconductor Module (2013 - 2020)
NI STS for Mixed signal and RF
New to the forum? Please read community guidelines and how to ask smart questions
Things Not To Do
09-08-2022 03:53 PM
@santo_13 wrote:
New to the forum? Please read community guidelines and how to ask smart questions
From the community guidelines
Things Not To Do
09-08-2022 04:10 PM
From the community guidelines
Things Not To Do