Ok, so first you want to make sure you have this folder on the driver station
http://tinyurl.com/smrtdshbd. On the DS, go to wpilib -> tools -> smartdashboard.jar when you are connected to the robot. To test your code on your own computer, make sure you have the robotpy eclipse plugins
https://github.com/robotpy/robotpy-e...ster/README.md. Then, in the eclipse menu bar, click
WPILib, then
Run Simulation Smartdashboard. This will let you see the ultrasonic sensor change based on the value you change in the simulator.