01-20-2018 11:43 AM
I wondered if anyone else has encountered this... It appears that Traverse for Refs no longer detects controls.
The attached example is written in 2017 and returns 0 refs. I wired the class name directly, so no typos. Try traversing for controls - nothing. Try traversing for GObjects, you get a bunch of stuff but no controls....
Solved! Go to Solution.
01-20-2018 12:20 PM
Nevermind. I figured it out. If you want a reference to a control on the block diagram, you need to search for "ControlTerminal". It's still confusing that the class name property outputs a class name, but it is not the correct class name to use with Traverse for Refs...
01-21-2018 06:44 PM
Click on the BD enum and change it to FP. I may not be getting the names completely right by a Control is only found on the front panel where as a ControlTerminal is only found on the block diagram. They are separate objects but you can get the reference of one from the other.
01-22-2018 08:06 AM
Yeah the reason I had the BD selected is because I pulled this out of some code where I was looking for the controls (terminals) located inside a structure on the block diagram. Could not figure out why it couldn't find them. But I figured it all out now. Using ControlTerminal instead of Control seems to work for that.
thanks.