LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 2020 Linx ultrasonic-sensor problems

Hi everybody,

 

I have a problem with my HC-SR04 Ultrasonic Sensor. In LabVIEW 2019 there is no problem to read the distance from it. But in LabVIEW 2020 it read nothing but the VI runs without errors.

 

System: LabVIEW 2020, LINX 3.0.1.192, Arduino UNO

 

Can someone help me?

 

Thanks a lot

 

kind regards

 

Goli95

0 Kudos
Message 1 of 6
(2,544 Views)

Attach some code so we can see what you are doing!

0 Kudos
Message 2 of 6
(2,499 Views)

I attached a printscreen of the code.

0 Kudos
Message 3 of 6
(2,429 Views)

That is not code, but a picture of code.  So we can't run it for ourselves.

 

That said, it looks pretty simple.  So I can't see why LV20 would behave differently than LV19.

 

You say "the VI runs without errors", but how do you know?  Have you probed the error wire or put an indicator on it?  Right now if there is an error on that lone LINX VI in the loop, you won't see it because it reaches the tunnel.  You are "handling it" which means the automatic error handler won't pop up any dialogs.

 

Should you have a wait function in that loop?

0 Kudos
Message 4 of 6
(2,417 Views)

Hello there,

 

I solved the problem. i don't know what mistake i did, but i made it completly new and now it works.

 

Thanks for your help.

0 Kudos
Message 5 of 6
(2,371 Views)

Can you share how you solve the problem, because i  have same problem

 

0 Kudos
Message 6 of 6
(1,599 Views)