LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

visible property

If I have 20 items in a listbox, each item corresponds to a control cluster. The cluster appears according to the item in the list that the user push while the other ones disappear. This is all in a While loop until the user hit OKAY. Is there a quicker way to set the visible property because the way that I have in mind right now is a case structure that make one visible and the other 19 invisible. This is very tedious because that means that I have to do the same for all 20 cases. Thanks.
0 Kudos
Message 1 of 10
(3,673 Views)
But why you think you need all those 20 cases? It looks like there are only two cases - lisbox value changed or not (also, may be an event structure looks good here). Your task is similar to radio buttons management. You can use references to your control clusters an organize them in a kind of an array. So you need to set all visibility properties of your clusters at the first (initial) step and modify pairs of them later (one to hide, another to show). Or you can make a SubVi with 2 input terminals: an array of references to all clusters and a index of the cluster you need to be visible. Hope this helps.
Message 2 of 10
(3,673 Views)
I sorta understand using an event structure to detect if there is a change in the listbox or not, but how would the program tell which cluster to appear though (Clusters A, B or C) and hide the other ones?
0 Kudos
Message 3 of 10
(3,673 Views)
Oh,I think I got it now. Thanks Defuflo. That was a big help 😄
0 Kudos
Message 4 of 10
(3,673 Views)
1.Event structure is not necassary, but can simplify things sometime...
2.As you say, items in the listbox corresponds to your control clusters. So if I understand well the listbox value gives you information about witch cluster you must make visible. I do not know what you have planned in the beginning, but if the order of the items in the list do no change than you can construct array of the corresponding cluster references in the same order and then use the listbox value as an index value for this array.
0 Kudos
Message 5 of 10
(3,673 Views)

Is there any example for this post

tq

0 Kudos
Message 6 of 10
(3,404 Views)

What example are you looking for?

An Event Structure? Listbox? Cluster controls?

R

0 Kudos
Message 7 of 10
(3,381 Views)
message1[analog thread] seems interesting,any example to solve that problem
 
tq
0 Kudos
Message 8 of 10
(3,377 Views)
I suspect that vk1 & Veeru are the same person 😉
 
Have you started implementing code and need a solution for it?  If so, please post the code so that we can prepare an adequate example.
 
R
0 Kudos
Message 9 of 10
(3,349 Views)

yes,veeru is the id i use at work and the other at house(as i am not allowed to open personal mail accounts at work).

Thanks,joe i am getting on with the code,hope i need few tips at the last,so by that time i will post again.

Have a nice weekend



Message Edited by Veeru on 07-04-2008 07:47 AM
0 Kudos
Message 10 of 10
(3,346 Views)