09-27-2006 08:30 AM
09-27-2006 08:34 AM - edited 09-27-2006 08:34 AM
That's a piece of cake.
The Global is just a VI that has no block diagram.
Open a ref to the VI.
Get a ref to the FP.
Property node to get an array of refs to controls[]
Wire to a For loop and read the Label>>> Text.
You know the rest!
Ben
Message Edited by Ben on 09-27-2006 08:35 AM
09-27-2006 09:41 AM
09-27-2006 10:18 AM
I forgot to mention.
All elements within the Global Variable are within Tab Controls.. This is where it got tricky. I can get the name "Tab Control".. but it's to get the name of each Tab, then each element within each Tab..
not to complicate things, of course!
🙂
09-27-2006 10:26 AM - edited 09-27-2006 10:26 AM
Message Edited by TonP on 09-27-2006 05:28 PM
09-27-2006 10:29 AM
Thanks Ton..
That's where I went wrong.. The "ClassName" TabControl..!!!! ARRRRGGGG!!!!HHHH!!!
I'll try it and post the progress..
😄
09-27-2006 10:35 AM
Another variation on Tons example would monitor the error cluster coming the the "To More Specific" node after attempting to convert to a "Tab Control" type. If it converted OK, the control was a tab control.
BTW: the approach also helps in scripting if you are trying to find an object of a specific type.
Ben
09-27-2006 10:45 AM
09-27-2006 11:56 AM
09-27-2006 12:40 PM
Thanks guys!
It worked very well.
Yes, "Get All Controls in Container.vi" would be wonderful.
RayR