06-17-2024 01:23 PM
I want to find all text objects visible on a front panel. The built-in "Traverse for GObjects.vi" doesn't find labels, captions, nor boolean texts.
Does anybody have something that already does this?
06-18-2024 02:57 PM
The NI-provided Get GObject Label.vi can get you partway there, but you'll need to make a couple of copies/modifications of it to do everything you want. I just hacked this stuff together, so I'm sure there are some things that don't work properly (i.e., if caption and label are both visible for a control it will only return the caption, and I only added label functionality to controls as a proof of concept).
This is in LV2020 so let me know if you need an earlier version