LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

hiding LEDs during runtime

Does anyone know how to hide some of the LEDs or buttons on the front panel based on some conditions. Actually I am developing an user interface which will display the status of some digital lines and these lines are not fixed. They will vary with the project. So, I want to read the no:of lines from a file and display only those LEDs on the front panel .I want the rest of them to be either hidden or grayed out. How to do it?
0 Kudos
Message 1 of 12
(3,583 Views)
You can put them in an array and crete a property node on it.

Chose the property "number of columns" or "number of rows" and set it to the value of the number of lines you want to show.

Cheers.

Doc-Doc
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
0 Kudos
Message 2 of 12
(3,583 Views)
hi,
you can make use of the Property Node Property VISIABLE{TURE/FALSE},to hide things on runtime.
0 Kudos
Message 3 of 12
(3,583 Views)
srini wrote:

> Does anyone know how to hide some of the LEDs or buttons on the front
> panel based on some conditions. Actually I am developing an user
> interface which will display the status of some digital lines and
> these lines are not fixed. They will vary with the project. So, I want
> to read the no:of lines from a file and display only those LEDs on the
> front panel .I want the rest of them to be either hidden or grayed
> out. How to do it?

Right-Click on the "LED", choose "create -> Property Node". You'll get a
node on the diagram which is on "visible" by default. If you wire a
boolean "false" to this, it get's invisible, otherwise it's visible.

Bye

Marco
0 Kudos
Message 4 of 12
(3,583 Views)
He forgot to mention he has 96 digital lines (see other questions by Srini today), so I am not sure it is the best way to do it ...

Doc-Doc
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
0 Kudos
Message 5 of 12
(3,583 Views)
Hi,
Oh i am sorry i forgot about this ,then you suggested is the best option he can do.
vicky
0 Kudos
Message 6 of 12
(3,583 Views)
Using of 'property node' is the best option for this!!!
0 Kudos
Message 7 of 12
(3,451 Views)
A tab control might be an option.

Lynn
0 Kudos
Message 8 of 12
(3,583 Views)
Hi,
Your option is good if I have to gray out(or make invisible) say 10 or 20 of the total lines. But in my case, the no:of LEDs do be grayed out are not in continous order and they may vary for different projects. In that case, I feel that using the property node for each LED is better. Any comments! I haven't used tab control till now. I will try that. But in case, when the application is opened, it should automatically read from a configuration fileand gray out the required LEDs. I don't know whether tab control can do it.
0 Kudos
Message 9 of 12
(3,583 Views)
Hi,
I haven't used tab control till now. I will try that. But in case, when the application is opened, it should automatically read from a configuration file and gray out the required LEDs. I don't know whether tab control can do it.
0 Kudos
Message 10 of 12
(3,451 Views)