From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW for LEGO MINDSTORMS and LabVIEW for Education

cancel
Showing results for 
Search instead for 
Did you mean: 

Ultrasonic Sensor

I have tested the Ultrasonic sensor using the brick and it works.  However, with the program I have written gibberish numbers appear such as 950 or 150.  I know I'm missing something but I don't know what.  I suspect it's something with the flatten to string like I'm not just flattening a number but the cm or in string value.  Thanks.
0 Kudos
Message 1 of 2
(6,317 Views)
I think the problem from using flatten to string so I replace it by number to decimal string.
 
the attatchment is your file but I use number to decimal string block. I hope that work.
 
0 Kudos
Message 2 of 2
(6,241 Views)