LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA read and print on front panel

Hello,
i have a program that read data from VISA. There are 12 indicators that are moving depending data read and everyone of this has a LED. When one of this is out from the acceptable range, the own LED become red. I want to print on front panel the name of the LED that are red. I tried in this mode but the string in the indicator in the front panel flashes . The program is enclosed in a while loop serving for the reading from VISA. How can i do?
Thanks in advance
GM

0 Kudos
Message 1 of 3
(2,179 Views)

Hi

 

you can do a separated while loop which checks your LED every N seconds 

 

To do so, make a reference for all your LED, and make an array of them.

 

For each reference (for loop with the pevious array indexed), use the property node Value or Color.

If red -> use the property node label.Text to get the lbel of this LED, and concatenate it in a string (or make a string array, as you wish)

 

So, after this loop, you will have in a string indicator (or an array) the name of all your red LED.

 

I hope it will help

Giuliano Franchetto
Student at the l'Ecole Nationale Supérieure des Mines de Saint-Etienne, cycle ISMIN (FRANCE)
0 Kudos
Message 2 of 3
(2,159 Views)

From the posted image it's impossible to understand the overall logic, however you probably want to update the string together with its associated LED, so why not to write to the string indicator inside the big case structure?

Furthermore, you are updating the Sx P.L.V. indicator twice (through the terminal and the local variable); this is pointless.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 3
(2,157 Views)