LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cluster of string indicator

Hi all

I really need a hand of help here.. Could someone pls teach me how to change the indicator of the cluster depending on the value of the 1D array? Pls look at the example of vi that I've created here.. THANKS...!!! Smiley Indifferent
0 Kudos
Message 1 of 9
(3,438 Views)
You will want to make use of the "Index from Array" and "Bundle By Name" functions.

As for hiding the 4th element of the cluster, you can right click on it and create a property node - choose the visible property and wire a False value to it. (Or some logic to produce the desired hide/unhide behaviour).
0 Kudos
Message 2 of 9
(3,425 Views)
Here's a simple solution (LabVIEW 8.0).
 
 
Don't forget to set the cluster size on the "array to cluster" node. 😉

Message Edited by altenbach on 02-19-2006 11:02 PM

Download All
0 Kudos
Message 3 of 9
(3,419 Views)
Thanks for the reply.. But the string indicator / label did not change.. What I need is to change the string indicator in the cluster.. Pls help...!! THANKS!!!
0 Kudos
Message 4 of 9
(3,412 Views)

Do you want to change the string or it's label?

You cannot change the label, but you can change the caption at runtime. So simply display the caption instead of the label, then change it programmatically. See attached.

0 Kudos
Message 5 of 9
(3,408 Views)
YES!! This is the one that I"m looking for... Sorry, I should say the String Label instead of Indicator... ..... Smiley Happy  Thank you so much...
0 Kudos
Message 6 of 9
(3,401 Views)
Hi altenbach

I've followed exactly what you had done here but why error occurred during execution? Pls look at the error.jpg
0 Kudos
Message 7 of 9
(3,375 Views)
Make sure that all your cluster elements actually show the caption, not the label.
 
I can create your error if I create cluster elements that have never shown their caption. I guess, the caption does not exist in this case and the error occurs.
0 Kudos
Message 8 of 9
(3,372 Views)
Thanks for the explanation...
0 Kudos
Message 9 of 9
(3,365 Views)