-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Issue
From Lookup Object Hierarchy.vi

We have two classes in a PPL:
A.lvclassB.lvclass
B inherits from A.
When used with B, from the PPL, the LabVIEW internal VI Get Mutation History.vi returns the parent name (A.lvclass) without the good name qualification (in the example, LVCompositionPPLBug.lvlib:A.lvclass instead of LVCompositionPPLBug.lvlibp:A.lvclass, the p is missing).
This results in a Get LV Class Default Value By Name.vi error 1373.
This is maybe a bug, but it's also a vi not really intended for use. I'll create a ticket issue on NI website.
Possible fix
In the variant palette, there is a Get LabVIEW Class Parent And Member VI Information.vi allowing to get the class parent default value. But the VI behave weirdly in the sense that casting B.lvclass to LabVIEW Object makes this vi see the class as an instance of LabVIEW Object instead of an instance of B.lvclass, resulting in a null parent class...
This idea exchange is related.
A fix would be to use a Variant control input instead of a LabVIEW Object for Decompose LabVIEW Object and internals. But don't use Get LabVIEW Information.vi from Variant palette since the returned class name is not qualified.
But now it's ugly and it as an additional copy of the class...
Also, I don't know if Get LabVIEW Class Parent And Member VI Information.vi available in 2017...