LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problemas de lectura sensor ultrasónico Labview

E9E0A83E-CC38-42D1-8B2D-ADA2EA92F6CF.jpeg

ACEFE57E-9322-4D44-8534-6938339A2ADA.jpeg

 Hola Buenas tardes, tengo un problema en la comunicación con labview ya que al ejecutar el programa los valores parpadean y el tanque no detecta la señal

0 Kudos
Message 1 of 2
(1,297 Views)

The data in the string "Distancia (cm)" seems to be empty, so the numeric conversion will give zero, which is the default value. Since the output is zero, the FALSE case executes. I cannot see what is in the FALSE case, but I suspect that is why your tank doesn't show any changes.

 

You probably aren't receiving clean data on every loop iteration, so you should add some code that evaluates and handles the string output of the VISA Read function.

 

 

On looking closer, the maximum value of your tank is set to 10. The value in your digital display is 4000. Change the tank maximum value to be higher. Simply highlight the value and edit.

Wes Pierce
Principal Engineer
Pierce Controls
0 Kudos
Message 2 of 2
(1,288 Views)