03-26-2010 12:26 AM
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
03-26-2010 02:28 AM
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
03-26-2010 02:38 AM
something like this
03-26-2010 04:17 AM
Use the TRef Travers vi's to get the references to all controls. They are located in the utility folder of LabVIEW.
Felix
03-26-2010 12:20 PM