LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview 2020 LINX Ultrasonic Sensor Arduino

Hi everyone, 


i would like to measure a distance with the Arduino UNO R3 and LabVIEW 2020. For this i use the HC-SR04 ultrasonic sensor.
The problem now is, that my VI only shows a distance of 0m.


It is not the problem of the sensor because it works.

 

I read that there is a problem with the LINX Ultrasonic Read VI, but no solution to it.
Hopefully someone can help me here.

 

Thanks a lot!

0 Kudos
Message 1 of 3
(221 Views)

Hello Vanessa,

 

Thanks for providing code. May I ask what LINX toolkit are you using?

Can you confirm that all pins are connected well and all channels are set properly?

Did you use probs in this code to see if you acquire any data (I mean, is there any data that gets into the loop? )

Please answer to these questions, so we could go ahead and see what's the problem.

 

Have a nice day!

 

0 Kudos
Message 2 of 3
(146 Views)

Hello, i recently provided an answer on this topic:

 

https://forums.ni.com/t5/Hobbyist-Toolkit/Problema-de-lectura-de-sensor-ultrasonico-HC-SR04-con-libr...

 

see if that can help you

Jorge Augusto Pessatto Mondadori, PhD
Sistema Fiep
CLAD, CLD
0 Kudos
Message 3 of 3
(92 Views)