04-30-2009 03:06 PM
Is there a way to set the LED to Labview deafult w/o setting the Colors[4] ?
Thanks
Elik
Solved! Go to Solution.
04-30-2009 03:30 PM
Go to the front panel, right click. Select Replace and pick the LED from off the palette again.
04-30-2009 03:46 PM
Sorry, I might be not be clear as it should. I meant during run time setting to default with Labview code.
Thanks.
Elik
04-30-2009 03:51 PM
"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)
04-30-2009 04:18 PM
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
04-30-2009 05:31 PM
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".
04-30-2009 06:23 PM
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
04-30-2009 07:20 PM - edited 04-30-2009 07:22 PM
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. 😉
04-30-2009 09:44 PM
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