LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set LED color to default

Solved!
Go to solution

Is there a way to set the LED to Labview deafult w/o setting the Colors[4] ?

Thanks

Elik

0 Kudos
Message 1 of 9
(4,601 Views)

Go to the front panel, right click.  Select Replace and pick the LED from off the palette again.

0 Kudos
Message 2 of 9
(4,592 Views)

Sorry, I might be not be clear as it should. I meant during run time setting to default with Labview code.

Thanks.

Elik

0 Kudos
Message 3 of 9
(4,585 Views)

"default" is the value (true or false). properties need to be changed via property nodes.

 

Of course if you would use a colorbox made to look like an LED, the value is the color and things will work as you like it.

 

(see for example my recent post here)

Message 4 of 9
(4,580 Views)

Thanks.

I could not open the VI(I got labview 8.5) but through the how to I tried I figure that part but not which property node to set to resonse to default and the realted color?

Elik

0 Kudos
Message 5 of 9
(4,564 Views)

Sorry, I meant "invoke node", not "property node".

 

To set any control or indicator to defaults, you use an "Invoke node" with method "Reinit to defaults".

 

 

0 Kudos
Message 6 of 9
(4,547 Views)
Solution
Accepted by Elik

Thanks for the quick response.

Issue resolved but now I have hudred of LED to replace in my GUI. Not your problem.

Thanks again.

 

Elik

0 Kudos
Message 7 of 9
(4,539 Views)

Why do you have 100s of LEDs? Can't you for example use an array of LEDs or some other scalable data strucuture?

 

Also remember that the datatype is different, so further code changes are needed. An LED is TRUE of FALSE, a colorbox can have ~2^24 different colors. Can you show us some code? Maybe you are approaching all this way too complicated.

 

Also, you should not mark your own post above as "accepted solution", because it does not contain any solution! Look again. 😉

Message Edited by altenbach on 04-30-2009 05:22 PM
Message 8 of 9
(4,526 Views)

Ta answer to your question I do need to view many LEDs in my application, and I'll use an array as suggested.

Thank you for all your remarks.

 

Elik

0 Kudos
Message 9 of 9
(4,514 Views)