LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the color of Numeric array elements (seperately) programmatically using property node??

Solved!
Go to solution

For example, i have 3 numeric controls, controlling 3 numeric array elements (Numeric control is connected directly to indicator). Then if i change value in numeric control 1, then the array element No.1 of numeric array should turn red when value exceeds 5. Similarly when i change num control 2 then element 2 of array should turns red when value in num control 1 exceeds 10. Similarly for 3rd element. In other words, i want to control the property of array elements individually through seperate numeric control.

 

I have done it for single numeric indicator.i.e. when i change numeric control's values then a single numeric indicator changes values and color (Numeric text BG property) but with array, the color of whole array changes but i want to change color of singles element of array.

 

Please help thanks.  

 

 

0 Kudos
Message 1 of 3
(5,017 Views)
Solution
Accepted by topic author Waqar123

Hope you are doing well! You cannot change the properties of individual elements of an array. What you could do instead is to probably use a table where you can change the background color of a cell?

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 2 of 3
(5,015 Views)

...or replace the numerics with clusters that have a numeric and a color box. make the background of the nmeric transparent and slide the color box behind the numeric. Use the color box to control the background color.

 

Other alternatives would use a cluster instead of the array or if your req's are really weird "roll-your-own" with a Picture control.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 3 of 3
(4,998 Views)