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
(4,377 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
(4,373 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
(4,299 Views)
Solution
Accepted by 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
(4,293 Views)