In order to pass TestStand Button reference to a SubVI, you should use the
Automation Refnum control. The TestStand Button is an
ActiveX control. In the SubVI you must select what type of reference (ActiveX class) will be passed into the Automation Refnum control. To do so, right click on the control and choose "Selective ActiveX Class". If you see
TSUI.IButton in the context menu, that's the one you want. Otherwise, select Browse and navigate to the NI TestStand UI Controls automation server. Select "Show Creatable Objects Only", then select the Button class from the list of classes.
Now you should be able to wire the reference into an Invoke Node or Property Node. One thing to watch out for is copying nodes. LabVIEW keeps the type (although it doesn't appear so), when you copy a node. So be sure to place a new Property Node or Invoke Node down. When you wire the reference into the Node, it should say
IButton at the top.
Let me know if you have any specific questions.
Regards,
Tyler Tigue
Applications Engineer
National Instruments