ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String indicator color

Solved!
Go to solution

Hi guys I want to know if it is possible to change the color of the string indicator twice depending on the input. For example on the same string indicator I want the red color when the result of the test is False and the green one when the test is passed. Is it possible?

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

You can change it as many times as you want using a property node. You can change the font color, background color, or both.

Message 2 of 9
(4,543 Views)

hi alten could you please provide me an example?Thank you

I see how to change the colour of the written but I don't know the number that correspond to each color.

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

Use a colorbox constant instead of a numeric!

Message 4 of 9
(4,530 Views)

mmm I tried in this way:

 

Immagine.PNG

 

128 should be green.... but doesn't work

0 Kudos
Message 5 of 9
(4,526 Views)
Solution
Accepted by inuyasha84
Message 6 of 9
(4,525 Views)

oh nice but one more question how have you created that colored square?

Thank you

 

EDIT: you used the color box. I have never seen it before. Thank you for your help 🙂

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

@inuyasha84 wrote:

128 should be green.... but doesn't work


Why? Green is 065280. It is easier of you set the display format to hexadecimal. Green is 00FF00.

 

Still, using a colorbox constant is much easier to use. It can be found in the "graphics&sound...picture functions" palette.

 

(See also this old idea)

Message 8 of 9
(4,520 Views)

Yea I have edited my last message.

Thank you for your help. I'll give a look also to your last link

 

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