12-23-2010 06:34 AM
Hi :
I have question please , attach see file please , i have array list of test , I want to disable only element number 1,3,8 and 10
How can I do that
thanks
12-23-2010 06:44 AM
12-23-2010 06:48 AM
HI
I don't know of a way to disable ( i.e. grey out etc.) only certain elements of an array.
You will have to transfer this to a cluster. Name the elements of the cluster like 1,2,3 .. so you can easily access them in a loop.
Since all elements of the cluster will be of the same type you can also convert cluster to array or vice versa if it's just for the display.
If somebody has a better idea, your welcome. This problem arises often. I'll monitor the thread,
Gabi
12-23-2010 07:32 AM - edited 12-23-2010 07:36 AM
Hi Elyan
We cant enable/disable a element in an array,
But your problem could be solved using a " List Box" with making Symbols visibles.
See the attached VI.
Ganesan Kani
12-23-2010 07:55 AM
I was thinking that you could add a note to the string to indicate disabled, then handle it in your code as follows:
I think I like Ganesan Kani's solution better.
12-23-2010 08:33 AM
Hi :
can you send me please this correction you made as vi
thanks alot
12-23-2010 09:41 AM
Here's an attachment, but the other one is a VI. Just drag the image (Snippet) into a Block Diagram and LabVIEW will turn it into G code.