LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control caption names for elements of a boolean array

Howdy, folks
I'm trying to control the caption names for each element of a boolean array. Can't seem to find the appropriate property node which will index each element to each element in the FOR loop. Please see the attached.

Sure appreciate the help,
Hunter
Message 1 of 7
(5,480 Views)
(Your attachment did not make it).

Arrays are composed of all identical elements. You cannot have individual captions, they are the same for all elements in the array.

As a workaround, you could make an array where each element is a cluster of a boolean and a string. Then you could arrange it so the string looks like a caption. 🙂
Message 2 of 7
(5,470 Views)
OK, I understand now. Thank you very much.
I'll give your suggestion a shot and get back to you.
Thanks,
Hunter
Message 3 of 7
(5,464 Views)
Well, it looks like I have the same problem. Cannot have cluster where one thing is a control (the boolean array) and another is an indicator (the names string array), if I understand things correctly.
Just doing it the simple way. Channel names array simply feeds names indicator array, while boolean array control will lie directly beside it.

Not very elegant but quickest thing that I can think of.
Thanks for the suggestion,
Hunter
Message 4 of 7
(5,456 Views)
Creating a text array lined up next to it is of course the simplest solution. If the labels are always fixed, you could just use plain label test on the front panel.

Here's an example how you can change the labels inside an array of cluster as I mentioned above. (LabVIEW 7.1).
Message 5 of 7
(5,447 Views)

Hi,

 

   This caption name of elements in the array of cluster.can it be changed using reference to the array. i tried it using caption property node but all array elements get same caption name. rather each element in cluster getting different name

 

Thanks and regards

Sasi Kala K

0 Kudos
Message 6 of 7
(3,261 Views)

@sasikala21 wrote:

   This caption name of elements in the array of cluster.can it be changed using reference to the array. i tried it using caption property node but all array elements get same caption name. rather each element in cluster getting different name


 

As we said 15 years ago, array elements can only differ in value, not in properties. All properties (incl. caption) are shared by all elements.

 

We have given you a useful workaround above. Arrays are efficient data structures exactly because of that.

 

(Imagine each array element would need to carry kilobytes of meta data describing color, font, caption, etc.etc.! Not reasonable!)

0 Kudos
Message 7 of 7
(3,245 Views)