In your begin.vi add an open motor.vi and attach it to a getdriverefnum.vi
then an open joystick.vi and attach it to a refnum.vi
Right click on the open VIs (Joystick and motor) and create constants in order to choose PWM and USB ports.
Ill add teleop.vi info later
Also sorry if the picture is blurry, ill try to get a better one.