LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Class data label names

Solved!
Go to solution

Hello everyone,

 

I'm trying to populate a test parameter table with label names I get from class private data. This works fine when running from the development environment, but not when called from a dll. Is this not possible outside the development environment? I get error 1013 right after the front panel property. Is there any other way to retrieve class data labels that I'm not aware of ?

 

Class Label Names.png

0 Kudos
Message 1 of 3
(3,517 Views)

If you must get that data (it is private) try this.

 

The class control is a VI!

 

It's name is "class name.lvclass:Class name.ctl". (Open the class private data and drop the VI in a string constant to get this name.)

 

So, simply open it with VI Server (Open VI Reference), get all controls from the front panel. That's only one control (the private data cluster. Get all controls from the cluster...

 

This will still not work in executables, as the front panel gets removed.

 

Use "Get Control Values By Index" to get the cluster anyway.

0 Kudos
Message 2 of 3
(3,440 Views)
Solution
Accepted by topic author macri

I found a workaround by basically taking the last part of my diagram where I collapse the test parameter array data to a variant and get the properties and removing everything before. I didn't need to scan the private data for the test parameter label just to get the value of the control. Seems so obvious after I got some sleep.

0 Kudos
Message 3 of 3
(3,389 Views)