initializing multiple joysticks

i have always been programming two joysticks (or more) my opening them on the teleop block diagram, and then setting which usb right there. However, i recently found out that you are supposed to initialize them in the begin vi. However, i’m not sure if you can initialize different ones, with RefNames as Joystick 1, Joystick 2…and then refer to the in the teleop with the same name. We’ve been having some difficulties with our robot and there is no way to know if this is the proper way.

The framework code does it the recommended way. It opens a joystick in begin, stores it with a name, and then teleop and other location can do a name lookup. This was introduced a few years ago and is used extensively to cut down on the number of parameters that need to be added. I’d recommend going through the sample code and adding your second joystick and getting that to work.

Greg Mckaskle