LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean text property in array of booleans

Solved!
Go to solution

I am having difficutly in creating a simple program that creates an array of clusters of boolean controls where each boolean has its own custom text.  I attempt to auto create the boolean text in a loop and then after writing to change each individual control, I bundle it and collect it into an array.  What am I doing wrong here?  

0 Kudos
Message 1 of 6
(3,462 Views)

The elements of an array can have different values but the must all have the same attributes.  The boolean text is an attribute, so it must be the same for all elements of an array.

 

Lynn

0 Kudos
Message 2 of 6
(3,455 Views)

Where's your cluster?

 

All elements of an array must have the same properties.  This includes the boolean text.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(3,451 Views)

Sorry, I left it out as I trimmed things back to post this question.  Here it is.

0 Kudos
Message 4 of 6
(3,448 Views)

The property node is not pointing to the array of booleans you are creating but rather the single boolean from which the array is created from.

Right now the property node is: Setting the text of the single boolean and returning its current value as a new boolean (for which the text has not been set).

 

0 Kudos
Message 5 of 6
(3,440 Views)
Solution
Accepted by topic author id

Here is a way using a cluster of String, Color Box, and Boolean to give you something which may be like what you want.  Note that the boolean is colored transparent so that it does not obscure the color box and string indicators.  If you are going to do something like this, make the cluster a typedef.

 

Lynn

0 Kudos
Message 6 of 6
(3,439 Views)