LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I conditionally change the color of numbers in a numeric indicator display?

Solved!
Go to solution
I want to change the color of numbers in an indicator if they are higher than a certain number how can I do this?
0 Kudos
Message 1 of 9
(3,842 Views)
I guess I can rephrase that better: I have an array of numbers (double) that I need to programmatically change the color of for an indicator.
0 Kudos
Message 2 of 9
(3,837 Views)
There's a NumText.TextColor property..
Message Edited by elset191 on 07-14-2009 01:47 PM
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 3 of 9
(3,830 Views)
Right click on the numeric indicator and create a property node. Navigate to Numeric Text -> Text Colors -> Text Color.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 4 of 9
(3,829 Views)
Numeric Text is not an option available to me in the properties. It appears that the only text I can modify is the label.
0 Kudos
Message 5 of 9
(3,819 Views)
Solution
Accepted by topic author sswager

Use a table indicator and then color the cells according to your needs.

 

(You cannot change the property of individual array elements anyway. Properties are global for all elements in an array)

0 Kudos
Message 6 of 9
(3,808 Views)
I had replied to your first post and ignored looking at the second one. altenbach's method should work.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 7 of 9
(3,803 Views)

Yeah, altenbach's suggestion is the best.  I wrote my example before I saw the array spec.

 

Edit: Dang, beat again.

Message Edited by elset191 on 07-14-2009 02:31 PM
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 8 of 9
(3,802 Views)

Here is an old example that show some of the basic methods how you could change the font color depending on the cell contents (testset2MOD.zip).

 

(from this old discussion)

0 Kudos
Message 9 of 9
(3,777 Views)