03-24-2022 11:16 AM
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
03-24-2022 12:45 PM - edited 03-24-2022 12:48 PM
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.