LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change the colour of a 2d array of boolean

Hello, I would like to change the colour of the components of an array of booleans according to some numerical conditions, such as in the example. Color[4] property works for scalars, not for arrays, at least in the tests I have done.

Regardless the conditions, how to have for example 3 colours rather than the on.off 2 states colors?

Thank you very much

Mario

0 Kudos
Message 1 of 3
(954 Views)

Color is a property that is shared by all elements of an array, so for a boolean, you can have a max of two. Array elements can only differ in value, not properties.

 

You can use an array of colorboxes instead, here the color is the value!

 

See also this idea

 

LEDArray.png

 

Sometimes you could just process the data and display it in an intensity graph.

 

(Sorry, cannot look at you code at the moment).

 

Message 2 of 3
(936 Views)

Also, you don't have a 2D array anywhere.

 

 

Here's one possible solution (you can easily tweak the boundaries and even add more levels as needed):

 

altenbach_0-1675792107897.png

 

0 Kudos
Message 3 of 3
(916 Views)