From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get LV class name of a member VI

Solved!
Go to solution

Hi,

 

Is it possible to get a LV class name of a member VI?

 

For example:

ClassA

  • foo.vi

 

ClassA.foo.vi --> foo.getLVClassName returns ClassA

 

Thanks,

Balazs

0 Kudos
Message 1 of 4
(3,544 Views)

Balazs,

 

i assume that you want to do this programmatically and for an inheritance class hierarchy.

You can use the Get LV Class Path.vi and strip everything except the class name.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(3,540 Views)

Hi,

 

Yes, I want to do this programmatically, but I have only a reference/path to foo.vi. So I would like to get it's class name through a property node or something like that.

 

Thanks,
Balazs

0 Kudos
Message 3 of 4
(3,466 Views)
Solution
Accepted by topic author BalazsB

Oops, i missed that there is a provided function called "Get LV Class Name"....

 

However, if you have a reference to a VI contained in a class, you can query the Library and then query the Name of the library using property nodes. Please make sure to close all references you create by these nodes in order to prevent a reference leak during execution.

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 4 of 4
(3,460 Views)