LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple boolean values in single array

I am working with a 2x2 array that uses an input of 5 values, 0-4. Unfortunately this is messy. To be visually accessible to the needs of the user, I have to implement a boolean system. I was wondering if there was a way of using event structures and maybe different colored booleans to create the necessary 5 values.
0 Kudos
Message 1 of 4
(2,924 Views)
I think you may need to consider clusters.
 
A boolean can only be on or off, so there is no way to handle multiple colors.  Now with handling events, you could read the value of your numeric array and adjust the colors of the boolean, however, these colors would apply for all of the booleans and not individual ones.
 
If you can work with clusters, then you should be able to get a reference to each boolean in the cluster and set the color accordingly.
0 Kudos
Message 2 of 4
(2,921 Views)
thanks, I'll look into that
0 Kudos
Message 3 of 4
(2,918 Views)
You can also use a picture ring, which will make it look like a multi-colored boolean and you still work with values 0-4.  This you can put in an array.  You can use the array in event structures and compare the new value to the old to determine the element which changed.
0 Kudos
Message 4 of 4
(2,914 Views)