LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to retrieve labels from cluster in class data?

Solved!
Go to solution

Is it possible to retrieve labels from cluster in class data?

 

I'm looking to use the labels from the cluster in class data to build a sql insert to a mysql database.  I currently do it this way using a cluster control, but it's getting pretty big and I'd like to reorganize.

 

 

Thanks,

Zac

0 Kudos
Message 1 of 7
(2,903 Views)

Do you mean programmatically (i.e. with code)? If so then I suspect not, because class data is considered private to that class, so unless you wish create a method for each class you have that analyses the data cluster for each contained datatype's label, I'd suspect this isn't possible. Not something I've ever done, but scripting can be surprisingly powerful (and I suspect the OpenG cluster-variant tools might be useful here), so it's possibly worth a go.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


Message 2 of 7
(2,895 Views)

Yes, programmatically.

 

I guess I'll put a cluster in the cluster of class data, then I can use a property node on the cluster indicator.

Edit: I could do this, but I can't put a type def in the class data.

 

Thanks for your response.

 

Zac

 

0 Kudos
Message 3 of 7
(2,882 Views)
Solution
Accepted by topic author zperkins

GetClassLabels.png

Message 4 of 7
(2,873 Views)

Thats what I'm looking for.  But I can't seems to find "Private Data Control" property.

 

 

 

ps. I'm in LV 2010

0 Kudos
Message 5 of 7
(2,855 Views)

The corresponding property is private in LV10 it seems. 

 

Go to the labview wiki to find the ini key you need:

 

http://labviewwiki.org/LabVIEW_configuration_file/Miscellaneous

 

The property goes by a different name. 

 

Like all private properties, they are great to save you time in coding, often not-so-great in production code unless there really is no other way.

0 Kudos
Message 6 of 7
(2,846 Views)

Thank you for your help.  I've been putting off the jump to current long enough.  Maybe it's time.

0 Kudos
Message 7 of 7
(2,834 Views)