LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Traverse for Refs Broken in 2017

Solved!
Go to solution

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....

 

image.png

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
0 Kudos
Message 1 of 4
(2,558 Views)

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...

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
0 Kudos
Message 2 of 4
(2,541 Views)
Solution
Accepted by topic author Taggart

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.

Matt J | National Instruments | CLA
0 Kudos
Message 3 of 4
(2,496 Views)

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.

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
0 Kudos
Message 4 of 4
(2,482 Views)