LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Numeric indicator with LED

Hello,

 

I have a numeric control and a rectangular LED that changes colour from Green>Yellow>Red with different range of values for each colour. I was wondering If I can place this LED behind a numeric indicator. Basically have the background have the LEd while the number displays the Numbers in the front. I tried to change the order of these items but doesn't work the way i want it to. 

 

Any help would be great! Much appreciated!

 

Thuba25

0 Kudos
Message 1 of 11
(4,034 Views)

You can overlay and arrange objects on the z-axis -- however it is not recommended due to potential performance issues.

 

How about rather than having an LED behind the control, change the background (or perhaps text) color of the control itself?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 11
(4,030 Views)

This is the best attempt I could do... I set the background of the Control to transparent using a Property Node:

 

onoff.png

 

 

 

test.png

 

EDIT:

 

it should also be noted i used "Bring to Front" on the Numeric Control.  I also disabled the label and increment/decrement visibility:

 

bringtofront.png

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
Message 3 of 11
(4,021 Views)

Ooh, Ooh, Ooh...

 

Mr Happy's suggestion just gave me another idea: Have nothing but the LED and display the number in the LED's Boolean Text property.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 4 of 11
(4,016 Views)

@mikeporter wrote:

Ooh, Ooh, Ooh...

 

Mr Happy's suggestion just gave me another idea: Have nothing but the LED and display the number in the LED's Boolean Text property.

 

Mike...


I like this idea even more than mine.  It would look much nicer.  But I dont have time to create another example if you would like to do the honors.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
0 Kudos
Message 5 of 11
(4,012 Views)

How can i do that ?

0 Kudos
Message 6 of 11
(4,006 Views)

Thuba should be able to comeup with the code, there's property nodes for all the significant bits -- as well as examples that ship with NI.

 

One hint though: The Boolean Text for an LED typically isn't shown by default, you'll have to turn it on manually.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 7 of 11
(4,004 Views)

I don't want the text to be just two values for ON and OFF. The colours will be green yellow and red. So i would like to display the range of numbers, lets say 1-10 for GREEN , 11-20 YELLOW and 21-30 RED. 

0 Kudos
Message 8 of 11
(4,002 Views)

That's fine, there's also a property node for what the boolean text should be, and for three colors vary the button color using property nodes -- rather than the boolean value.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 9 of 11
(3,999 Views)

@Thuba25 wrote:

I don't want the text to be just two values for ON and OFF. The colours will be green yellow and red. So i would like to display the range of numbers, lets say 1-10 for GREEN , 11-20 YELLOW and 21-30 RED. 


Thats why mikeporter's recommendation was even better.  You can literally set the string "1-10" or an individual number "1" using a property node.  See here for an example of property node's changing the label: http://digital.ni.com/public.nsf/allkb/35994A10267179A286256E15006D4255

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
Message 10 of 11
(3,998 Views)