LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arrays changing colour

I´m using LabVIEW 8.5.1.

 

I want to change the font colour of the elements 1D array that meet certain conditions. Suppose an array having 20 values, I would like to chane the font colour of the 3,4 and 5 position to red, the 7 and 8th to greenn and so on.

 

Does any one knows how to do it.?

 

simbani  

0 Kudos
Message 1 of 4
(2,751 Views)
You won't be able to do this using arrays.  All elements of the array must have the same attributes, the only thing that can be different is there value.  You may need to turn it into a cluster.  Each element of the cluster could have different attributes.  The difficulty with clusters is that it will be a bit more difficult in code to access a specific element of the cluster or vary the number of elements in the cluster during runtime.
0 Kudos
Message 2 of 4
(2,746 Views)

I would strongly recommend to use a table indicator.

 

An example on how to change cell background color and font color based on the value of each elements is shown here.

 

tableColors.vi

 

Message Edited by altenbach on 11-01-2008 10:57 AM
0 Kudos
Message 3 of 4
(2,733 Views)

Guys,

 

Thanks a lot for your help

 

simbani

0 Kudos
Message 4 of 4
(2,708 Views)