LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PPL with dependency on its own library

I regularly encounter an issue where a built PPL will have a dependency on the .lvlib it was created from. Working in 24Q1. (e.g. if I add the PPL to a project by itself, the .lvlib will show up under dependencies.)

 

Obviously, this shouldn't occur.  And I can usually get around it by doing a series of cleanup steps (clear cache and then through scripting wipe mutation history, replace all VIMs with themselves, replace all class constants/controls with themselves, etc...).  But then after a bit more development the issue will just happen again.

 

Anyone else experiencing similar issues?  Any suggestions for not having this continue to happen?  I'd post code, but it's difficult to consistently reproduce, and I can't share this codebase.

0 Kudos
Message 1 of 7
(2,134 Views)

@_carl wrote:

And I can usually get around it by doing a series of cleanup steps (clear cache and then through scripting wipe mutation history...).


We really need to convince NI of this idea: Make Class Mutation History Optional 



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 7
(2,110 Views)

I have not seen this issue despite moving all of my stuff to 2024Q1.  But I will say that NI is specifically working with a large customer to fix their PPL build issues.  I am not sure when we will see these fixes, but I suspect many will be squashed in 2024Q3 and even more in 2025Q1 (assuming there is a 2025Q1 release, NI has already announced there will be a 2024Q3).  This is my speculation and does not hold NI to any promises I may have implied.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 7
(2,109 Views)

Hi crossrulz,

 

Are you aware of any updates on this issue? We often see the same problems that are described above (PPL has a dependency on the LVLIB from which it was built, and/or lingering dependencies on VIs outside of the build source LVLIB).

 

Would love to see a fix for this.

0 Kudos
Message 4 of 7
(438 Views)

If it's the mutation history, that can be deleted by editing the .lvclass file. I've written scripts that automate this across all classes and never ran into an issue.

avogadro5_0-1790618887763.png (from dnatt.org)

The time this would break something is if you're actually using the mutation history, which might happen if you're intentionally having "black box" class values or loading serialized XML/binary old class values.

 

0 Kudos
Message 5 of 7
(425 Views)

@avogadro5 wrote:

If it's the mutation history, that can be deleted by editing the .lvclass file. I've written scripts that automate this across all classes and never ran into an issue.

avogadro5_0-1790618887763.png (from dnatt.org)

The time this would break something is if you're actually using the mutation history, which might happen if you're intentionally having "black box" class values or loading serialized XML/binary old class values.

 


There is this alternative way of clearing the mutation history that I prefer because it doesn't deal with xml (but it requires loading the class into memory). 

thomasallibe_0-1790663444464.png

Slow Editor Performance with Large LabVIEW Projects Containing Many Classes - NI

0 Kudos
Message 6 of 7
(396 Views)

@MegaHertz wrote:

Hi crossrulz,

 

Are you aware of any updates on this issue? We often see the same problems that are described above (PPL has a dependency on the LVLIB from which it was built, and/or lingering dependencies on VIs outside of the build source LVLIB).

 

Would love to see a fix for this.


My team and I heavily rely on PPL (+ OOP and a few .vim) and we haven't encountered this issue. Mostly a front panel is missing or vi is broken (but is not) type of issue when building.

We're using 2024 Q3 64 bit

0 Kudos
Message 7 of 7
(389 Views)