04-04-2025 05:10 AM
I didnt get what do you mean?
04-04-2025 06:53 AM - edited 04-04-2025 06:56 AM
@D1140 wrote:
I didnt get what do you mean?
I mean, you will build this application and run TestApp.exe. PlugIns 1 and 2 can be loaded as expected. Now, I will open the development environment and change, let's say, PlugIn1 (it doesn't matter what - for example, change the caption). Then, I will build a new packed library with the changed PlugIn. Now, while keeping the application running, I will replace PlugIn1.lvlibp with my changed PlugIn and try to load it again. The new changed version will not be loaded:
If I will restart whole app, then new modified PlugIn will be loaded as expected:
But I would like to replace lvlibp and get it runnng without restart, that is.
04-04-2025 07:27 AM - edited 04-04-2025 07:29 AM
yes it is not loading during runtime. for the example you have to restart the exe.
To run the ppl you have to call is from other vi and closing that vi will release it from memory and than you can replace it during runtime.
And i want to do exact this but my ppl would be individual DQMH module. Do you have example for that ?
04-04-2025 08:12 AM
You have to run the plugin in another VI hierarchy. When that goes idle, the class will be unloaded. At least that is what I gathered from listening to other people who do that. I am not a dynamic plugin person.
See for example this presentation by Matthias Baudot:
04-05-2025 05:48 AM
Unless something has changed significantly in one of the latest LabVIEW versions there is no way to unload a once loaded class from an application context, nada, njet, non!
You have to close the project and reload it.
PPLs only make the whole even more tricky! LabVIEW for some reason cross links even across application contexts when you load the same named PPL (but with different content, most prominently demonstrated with two PPLs compiled for different platforms). Once you got both projects loaded at the same time, by all means avoid saving anything to disk. Your project dependencies will get scrambled and sometimes beyond any repair!
04-06-2025 11:14 PM
Is there any other easy way to use ppls. Is there any frame work for PPLs ?
04-07-2025 01:42 AM
If the ppl stays in memory does it affects performance ?
04-07-2025 03:22 AM
@D1140 wrote:
If the ppl stays in memory does it affects performance ?
No, not unless you run out of memory. 🙂
04-07-2025 03:37 AM
yes that only the impact right we might run out of memory because the functions and loops in ppl also using the memory. Data structure might also use the memory right. So if I dont release the ppl from memory, after its funciton being over. I might run out of memory. That may cause application crashing issues right ?
04-07-2025 03:53 AM
@D1140 wrote:
yes that only the impact right we might run out of memory because the functions and loops in ppl also using the memory. Data structure might also use the memory right. So if I dont release the ppl from memory, after its funciton being over. I might run out of memory. That may cause application crashing issues right ?
It sounds right now like you are just idling around a bit with if's, when's, and but's and asking questions that are obvious to the one in the know and useless to the ones who don't know. What are your concrete problems? What hasn't been already answered in this thread that is worth talking about?