Skip to content

Lookup Object Hierarchy.vi issue with PPL #27

@thomas-allibe-se

Description

@thomas-allibe-se

LVCompositionPPLBug_2.zip

Issue

From Lookup Object Hierarchy.vi
Image

We have two classes in a PPL:

  • A.lvclass
  • B.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).

Image Image

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...

Image

Also, I don't know if Get LabVIEW Class Parent And Member VI Information.vi available in 2017...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions