LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scan labels and captions

Hello,

 

I have a couple of buttons/led indicators on my MainVi and a couple of SubVi. I would like to scan for the labels of all these indicators and write them into a file.In another file I have captions written; which I would like to add to the indicators present in the Vis.

 

Any help will be appreciated.

 

Thanks,

 

-H

0 Kudos
Message 1 of 5
(2,958 Views)

Hi H P,

you can do it with VI Server functions. With the refnum of your main vi, you can get an array containing all the control refnums. You can also get a list of the subvi's placed in the main vi. If you have these refnums you can repeat the code to read again the controls and subvi's of this. ANother property allows to read the label of the controls.

 

Mike

0 Kudos
Message 2 of 5
(2,949 Views)

something like this

 

 

1.png

Regards
Guru (CLA)
0 Kudos
Message 3 of 5
(2,945 Views)

Use the TRef Travers vi's to get the references to all controls. They are located in the utility folder of LabVIEW.

 

Felix 

0 Kudos
Message 4 of 5
(2,938 Views)
Dont forget that if you have any free labels that you want to save/load the text then you need to get the references from the [decorations] reference array
David
www.controlsoftwaresolutions.com
0 Kudos
Message 5 of 5
(2,912 Views)