09-02-2021 03:59 AM
I want to update my whole LabView program through LLB, without having to make a new exe everytime. Kindly help
Solved! Go to Solution.
09-02-2021 06:15 AM
That's way too vague. I have no idea what you want to do.
09-02-2021 07:56 AM
First, I would not use a LLB file. These are old technologies and they have the risk of a single VI corruption trashing all of the VIs contained in the LLB. I would recommend that you use PPLs (Packed Project Libraries) instead. What you will need to do is to learn how to dynamically call Vis. There are multiple examples included in LabVIEW. Regardless if you use a LLB or a PPL, you will need to make sure that you do not alter any connector panes when you update your code.
09-02-2021 08:14 AM
@Mark_Yedinak wrote:
First, I would not use a LLB file. These are old technologies and they have the risk of a single VI corruption trashing all of the VIs contained in the LLB. I would recommend that you use PPLs (Packed Project Libraries) instead. What you will need to do is to learn how to dynamically call Vis. There are multiple examples included in LabVIEW. Regardless if you use a LLB or a PPL, you will need to make sure that you do not alter any connector panes when you update your code.
You don't really have to call VIs dynamically. You could build the PPLs in a separate project and then you just directly call VIs from the built PPLs in the main executable's project. If you find a bug in one of the PPLs, you correct only that library, rebuild the PPL, and then distribute the PPL to whoever needs it. I have done this to reduce executable build times from 30 minutes to 30 seconds (PPL builds are often even faster, depending on how much you put into a PPL). Granted, I also go full plug-in where I dynamically figure out which class I need to load (class being inside of a PPL).
09-02-2021 08:20 AM - edited 09-02-2021 08:21 AM
This is a nice step by step guide to creating an architecture using PPLs that will accomplish what (I think) you want to accomplish.
Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.
09-02-2021 10:34 AM
@priya9129 wrote:
I want to update my whole LabView program through LLB, without having to make a new exe everytime. Kindly help
I have to say I am the exact opposite on this. When I distribute a program update I want as little to go wrong for the end user as possible.
So handing them a compiled EXE and telling them to simply replace the old one with the new one is (IMHO) by far the easiest and safest way to deal with program updates.
09-03-2021 02:54 AM
I want to automatically (and remotely) update my application (exe) when I make changes in my original LabVIEW code. Kindly help
09-03-2021 03:20 AM
Hi priya,
please don't start a new thread today for the very same topic of your yesterdays thread…
@priya9129 wrote:
I want to automatically (and remotely) update my application (exe) when I make changes in my original LabVIEW code. Kindly help
Create a new executable from your changed code. Copy that exe to your remote computer…
I did it this way:
(There's one more step 3a: the user gets a dialog to choose for "update now" or "postpone update"…)