LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exporting control names

I have created a control cluster with a series of string controls in it.

 

I would like to use the labels of each of the controls as a header for a file. Is there a property node or a method to extract this information?

 

I could unbundle by name, create an indicator for each item and get the text label property node for each item, but I was hoping for an automatic method so if I add/remove controls to the cluster, it will automatically extract/ignore the extra/deleted header .

 

Pablo 

Message Edited by Manc Pablo on 09-03-2008 10:24 AM
"When I read about the horrors of drinking, I gave up reading"
0 Kudos
Message 1 of 3
(2,539 Views)

the Controls[ ] property of a cluster gives you an array of it's contained controls' references.  you can also use the controls[ ] property of a VI's front panel to do the same thing for a whole VI.

Message Edited by JeffOverton on 09-03-2008 11:28 AM
0 Kudos
Message 2 of 3
(2,535 Views)

Brilliant, Excellent, Genius!

 

I am off to the pub! 

"When I read about the horrors of drinking, I gave up reading"
0 Kudos
Message 3 of 3
(2,530 Views)