05-28-2020 06:00 AM
I've opened a support request for this, but I'm going to post to the forum too for the following possible reasons:
When creating a New > VI for Override in a class that inherits from a class in a Packed Project Library with debugging enabled in LabVIEW 2020, the VI fails to be created with an error 7 in CLSUIP_CreateNewVI.vi
The error occurs inside the "No Error" case (which is why debugging enabled is important - with no debugging in the PPL the block diagram doesn't load and the scripting goes through the error case) when trying to load based on a template VI (the dynamic dispatch VI in the PPL).
Initially I ran into this using a PPL built in 2019 - I reproduced it using a new 2020 PPL with only one class and one (DD) VI.
Possible reproduction steps are:
Note that if you don't do step 4, there is no error.
The error appears to be the same if you use PPLs that you already have available from e.g. 2019 (in which case skip steps 1-5).
Solved! Go to Solution.
05-29-2020 12:51 PM
06-03-2020 12:11 PM - edited 06-03-2020 12:16 PM
Bug number 1047200 (replacing "legacy CAR ID", apparently) was filed against this.
Possible workarounds include
a) Modify LabVIEW 2020\resource\Framework\Providers\LVClassLibrary\NewAccessors\VIRetooler\CLSUIP_CreateNewVI.vi to always error in the middle case structure
b) Don't use debugging-enabled PPLs
c) Manually override (don't use the scripting).
09-15-2020 04:10 AM
A bit late to the party here, but the same appears when you select override from the tool menu. So manual override is really "manual"!
03-03-2021 07:54 AM
Hi guys,
I'm having the same problem with PPLs with debugging enabled, on a cRIO target.
About the workarounds suggested by Christian:
a) It worked for me! Thank you!
b) Painfull option (as all the PPL adventure on cRIO)
c) When you say "manually override", it meens :
- create a new VI from dynamic dispatch template
- add the right vi inputs/outputs
- save with the same name than the one you want to override
- optionnaly adapt the vi exection option
is that right?
Just something to notice, the exact same project with a parent PPL and a child trying to override a VI produce the problem on my machine, but NOT on my colleague's one. So there must be something contextual to this error.
03-03-2021 08:28 PM
@Jonzarwal wrote:
Hi guys,
...
c) When you say "manually override", it meens :
- create a new VI from dynamic dispatch template
- add the right vi inputs/outputs
- save with the same name than the one you want to override
- optionnaly adapt the vi exection option
is that right?
Exactly 😞 You also have to deal with required/recommended connector pane options, although maybe you included that in "add the right vi inputs/outputs".
@Jonzarwal wrote:
Just something to notice, the exact same project with a parent PPL and a child trying to override a VI produce the problem on my machine, but NOT on my colleague's one. So there must be something contextual to this error.
How odd... Thanks for letting me know - maybe this can be useful to NI etc if it reappears.
The bug-list/fixes at https://www.ni.com/en-gb/support/documentation/bugs/20/labview-2020-bug-fixes.html show this was fixed in 2020f1, so hopefully updating is also an option? (I don't recall right now, and mostly work in LV2019 currently).
03-04-2021 02:54 AM
Ok that makes sense. I have LV2020, and my colleague is LV2020f2.
So i'm upgrading.
Thanks for the feedback!