03-20-2009 12:38 PM - edited 03-20-2009 12:39 PM
Hi,
I have a number of modules (classes) that inherit from a base class called "Module". I have these all in an array of type "Module", I would like to log some information from each of these modules, but I need to distinguish between each module.
Is there a way to determine the class name from the data wire?
I can use varient to flattened string, but I was just wondering if there was a built in property node/function for this?
Thanks,
Jonathan
Examples Attached:
Solved! Go to Solution.
03-20-2009 01:44 PM
malkier,
There is no build in function that does exactly what you are looking for, but you can use the 'Get LV Class Path' VI to return the *.lvclass path of a given object. Using this path, you can either parse out the name, or you can use VI server to get the name of the class, as shown in the attached image.
Chris M
03-20-2009 01:55 PM
Excellent! Thanks, thats just what I needed! - Just added a close reference, and Its all good!
~Jonathan
03-20-2009 01:57 PM
03-20-2009 02:08 PM