How to print values on smartdashboard

Hello,

My team is attempting to program a potentiometer and get a value from it and have it displayed on the smartDashboard in the 2015 driver station. Starting with a potentiometer would be great, but if some help could be given in printing values for anything that would be even better.

I assume that you are putting a number from the potentiometer onto the dashboard. The code below is an example for when the potentiometer is connected to port 0


AnalogPotentiometer pot = new AnalogPotentiometer(0, 360, 30);
SmartDashboard.putNumber("Potentiometer Value", pot.get());

For more reference:

So we have tried that but we still aren’t printing to the smart dashboard. This code worked last year while using netbeans. We’ve also turned off IPV6.

Never mind. We found that our IP was set to 255.0.0.0 when it needed to be 255.255.255.0. Thank you for the help.