My team has been using RobotC to program this season and it has worked very well. But when i tried to put an encoder in, it started messing with things. Now we can't run programs. As soon as you click "Teleop Ready", the screen reads:
PgmCnt: 0000F2
Type: 2
And it has a loading sign underneath. It is very frustrating. We would be using Labview at this point except our NXT brick is rejecting anything Labview

I'll put the code beneath, and thanks in advance to everyone.
#pragma config(Hubs, S1, HTMotor, HTMotor, HTMotor, HTServo)
#pragma config(Motor, mtr_S1_C4_1, arm2, tmotorNormal, openLoop)
#pragma config(Motor, mtr_S1_C4_2, motorY, tmotorNormal, openLoop)
#pragma config(Motor, mtr_S1_C3_1, arm1, tmotorNormal, openLoop)
#pragma config(Motor, mtr_S1_C3_2, Dispenser, tmotorNormal, openLoop)
#pragma config(Motor, mtr_S1_C2_1, LftDrvWhls, tmotorNormal, openLoop)
#pragma config(Motor, mtr_S1_C2_2, RgtDrvWhls, tmotorNormal, openLoop, reversed)
#pragma config(Servo, srvo_S1_C1_1, servoA, tServoStandard)
#pragma config(Servo, srvo_S1_C1_2, Dropper, tServoStandard)
#pragma config(Servo, srvo_S1_C1_3, Catch, tServoStandard)
//*!!Code automatically generated by 'ROBOTC' configuration wizard !!*//
//***DONT TOUCH ABOVE***///
#include "JoystickDriver.c"
task main()
{
int threshold = 5;
while(true)
{
getJoystickSettings(joystick);
nMotorEncoder[arm1] = 0;
if(abs(joystick.joy1_y1) > threshold)
{
motor[LftDrvWhls] = (joystick.joy1_y1) * 100/127;
}
else
{
motor[LftDrvWhls] = 0;
}
if(abs(joystick.joy1_y2) > threshold)
{
motor[RgtDrvWhls] = (joystick.joy1_y2) * 100/127;
}
else
{
motor[RgtDrvWhls] = 0;
}
while(joy1Btn(7) == 1)
{
motor[arm1] = 30;
}
motor[arm1] = 0;
while(joy1Btn(5) == 1)
{
motor[arm1] = -30;
}
motor[arm1] = 0;
while(joy1Btn(10) == 1)
{
motor[arm2] = 30;
}
motor[arm2] = 0;
while(joy1Btn(9) == 1)
{
motor[arm2] = -30;
}
motor[arm2] = 0;
if(joy1Btn(2) == 1)
{
servo[Catch] = 80;
}
if(joy1Btn(3) == 1)
{
servo[Catch] = 0;
}
while(joy1Btn(1) == 1)
{
motor[Dispenser] = 100;
}
motor[Dispenser] = 0;
if(joy1Btn(8) == 1)
{
servo[Dropper] = 165;
}
if(joy1Btn(6) == 1)
{
servo[Dropper] = 255;
}
}
}