08-20-2013 03:00 AM
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
08-20-2013 04:01 AM - edited 08-20-2013 04:02 AM
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
08-20-2013 04:03 AM
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.