11-03-2023 09:58 AM
When calling property "Terms[]" on a SubVI object, I get all its terminals, including those which are not assigned to an input or an output.
Is there a simple (and efficient) way to tell whether a terminal is assigned or not ?
My current solution is to call property "Data Type" on the terminal and check whether the variant type is Void or not, but I would like to avoid that for performance reasons (this code will be in a right-click menu builder VI).
Thanks for your help,
Raphaël.
11-03-2023 11:53 AM
If you get the VI reference, then the connection pane, then the controls array, then check to see which of those controls are or are not valid, that also works.
You can also use the method to get the wiring rule, and see if it's equal to the invalid rule or not.
I can't tell you which of those is best for performance though.
11-06-2023 03:41 AM
@Kyle97330 wrote:I can't tell you which of those is best for performance though.
I doubt it will make a difference, but there's also a WiringRules[] property:
I'd use the method if I'd need only 1 wiring rule.
11-06-2023 03:51 AM