RoboRIO not connected to driver station

I am a member of the SeaCow Robotics MATE team, and this year we are attempting to control our robot with a roboRIO. We don’t have a radio, can, etc. so the only part we share from FIRST is the RIO. We’ve connected via USB and Ethernet in the past in this way and it has worked, but on a new laptop we cannot communicate with the robot via driver station. We have the team number from the team we are borrowing it from, all firewalls are disabled, and the roboRIO is on, but we still cannot communicate. Does anyone have an idea of what the problem might be?

Does the RIO show up when using the “roboRIO Imaging Tool”? This is a good place to start.

Pasting a screenshot/picture of the driver station diagnostics tab might help.

I recommend walking through the steps in: Unable to Connect to roboRIO in Driver Station, Imaging Tool or LabVIEW

Besides using the imaging tool to search , you can also use the DS to search. Shift click on the drop-down of team number: FRC Driver Station Powered by NI LabVIEW — FIRST Robotics Competition documentation

Thanks everyone for the help! We are now connected and the problem was the laptop. I am now trying to code a light for our robot with a simple timed robot system. I can get a response using the servo library with the PWM controlled light and a trigger, but now I would like to change the controls to using three buttons on an Xbox Controller, one for off, medium, and high. However, I cannot figure out how to keep the state of the light the same when it is constantly checking to see if a button is pressed. The goal is to be able to press a button once and for the light to stay in its state, not hold down the button. Any suggestions?

Try separating the button from the turning the light on. You have a variable that tracks the state. When a button is pressed update the state to whatever is needed.

After that check what state you are currently in and make sure that light is lit.