So there is a special kind of Driver Station called SmartDashboard. It is basically an 'application' that you can add (basically) anything to, including Ultrasonic values. To do this, create an analog input object (we'll call this ultrasonic).
Code:
self.ultrasonic = wpilib.AnalogInput(PortNumber)
Now, we must add it to SmartDashboard.
Code:
wpilib.SmartDashboard.putNumber('Ultrasonic', self.ultrasonic.getVoltage())
The reason it is getVoltage() is because thats how the ultrasonic returns its values, so it'd be best to set up a test board, then hold something in front of it at measured distances, record these values, then use them in your code.
For more SmartDashboard help check out
http://robotpy.readthedocs.org/en/la...Dashboard.html