Communication

Hello, I am currently taking a robotics course and we are having trouble getting our VEX EDR to program. When we try to write our own program and send it to the cortex we lose communication between the robot and the controller, but when we use a default program we have good communication, any ideas on what we are doing wrong?

Without more information it will be difficult to determine exactly what is happening, however, check the vex cortex communications mode (in the robot menu) is set to “competition” or “VEXnet and USB”.