From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

Is there an "official" way for a LabVIEW subclass to read its own name?

Solved!
Go to solution

The issue is that the application uses a database to store its configuration so at some point in the hierarchy, the subclass name needs to stop being a value used for dynamic dispatch and start being used at a parameter for a database query.

 

I have done a bit of poking and have come up with a hack potential solution that seems to work, but which has "brittle" written all over it. I could also put a value in the class data that says which subclass it really is, but that is ugly. So is there official way of doing this?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 1 of 3
(2,435 Views)
Solution
Accepted by topic author mikeporter

Is this:

 

http://zone.ni.com/reference/en-XX/help/371361K-01/glang/get_lv_class_name/

 

what you're looking for?

 

If not, I may not be understanding the question.

Message 2 of 3
(2,407 Views)

You understood fine, that is exactly what I was looking for. 

 

Thanks, Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,399 Views)