The Ultrasonic Sensor block gets data from the Ultrasonic Sensor. You can measure the distance in either inches or centimeters and get a Numeric output. You can also compare the distance to a Threshold Value to get a Logic (True or False) output. You can also detect other ultrasonic signals in “listen only” mode. See Using the Ultrasonic Sensor help for more information about what the Ultrasonic Sensor does, the data that it provides, and programming examples. |