|
Re: Wiring JoystickGet Buttons to a custom VI
One of the cool features is to select the nodes you want to be in the subVI. Then move to the Edit menu and choose SubVI from Selection.
LV will make parameters for the wires that cross the boundary in and out, and put the nodes into the subVI along with constants and such.
You sometimes want to be careful doing this with control or indicator terminals, and sometimes LV will tell you that there is a reason you may not want to do this, but it is a helpful tool and helps to prevent making editing mistakes.
To do this by hand, by the way, you'd put the code in the subVI, and you'd have a broken wire as the Button input would be missing. You would place a control on the panel to provide the button value, and you'd right click on the panel icon in the corner to show the connector. Then you can click a spot on the connector and wire the control to it.
Greg McKaskle
|