frc programming

I am the only programmer at my school, my knowledge is very basic, i seem to be having problems with setting up the drive system on usb1 and on usb2 set the arm, we are using the joysticks from the kofp and when i change the usb 1 from the drive for the motors to usb 2 the same happens for the arm, based on what i saw do i need to make different joystick refnums, one for joystick 1 and the other for joystick 2 thanks in advance
jose villa kofa robotics frc team 4126

Hi Joes,

Can you tell us which programming language you use? It will help us diagnose the problem.

Yes, you need a different Open and name for each joystick you use.

“refnum” is LabVIEW terminology.
For future reference there are sub-forums for each of the languages we use in FRC.
You’ll get better answers if you post in the correct forum, so we don’t have to guess what you’re asking about.

I am using lab view,
the robot has 3 motors
2 of them are for the drive system
the 3rd is for an arm that goes up and down
the team burned out our jaguars and all we have is one working jaguar and one working victor
we have another jaguar it was burned out and they tried to service it, i think they did something wrong inside because it only allows certain movements
after i realized this, i changed that jaguar for the victor, using the default code
i can make one jaguar and one victor work the 2 motor drive system(arcade drive) i have no clue on to how to set up a second joy stick and and also set up a 3rd motor.
based on what i have seen i need to put code for motor in the begin vi, finish vi and teleop vi
i also noticed that the motor connected with the victor runs faster than the one with the jaguar i assumed it was because the 2 were different components
thanks in advance

Check out the LabVIEW tutorial on motor control here:https://decibel.ni.com/content/docs/DOC-14723. There are a lot of good getting started tutorials at ni.com/frc

To add a joystick you need to add code to initialize it and set it to a named refnum in Begin, add code to use it in Teleop (or periodic tasks) and add code to close it in Finish.