05-19-2017 04:08 AM
Hi,
Is it possible to get a LV class name of a member VI?
For example:
ClassA
ClassA.foo.vi --> foo.getLVClassName returns ClassA
Thanks,
Balazs
Solved! Go to Solution.
05-19-2017 04:10 AM
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.
05-24-2017 01:04 AM
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
05-24-2017 03:01 AM
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.