parsec Posted January 24, 2017 Report Share Posted January 24, 2017 I have a sequence structure that I am using as a container for a number of unconnected controls and indicators (they are interacted with by reference only). I am trying to programmatically obtain the references to these controls, but I can only seem to get the references to the block diagram ControlTerminals using the Traverse for Gobjects VI. Does anyone know how I can obtain those associated control references? Quote Link to comment
jacobson Posted January 24, 2017 Report Share Posted January 24, 2017 A property of ControlTerminal is Control which gives you a reference to the front panel item. In your case you would need to change the class specifier constant being fed into the to more specific class to ControlTerminal (GObject > Terminal > Control Terminal) and then get the front panel reference from another property node before getting the label's text. 1 Quote Link to comment
parsec Posted January 24, 2017 Author Report Share Posted January 24, 2017 Sweet, thanks! That worked. I was racking my brain trying to find the property for the control reference. I didn't realise that the Traverse for G objects output reference was not typed to ControlTerminal. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.