LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array list

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

0 Kudos
Message 1 of 7
(4,800 Views)

Hi Elyan Wisam,

  As you have implemented the list as array,you cant disable invidual elements in an array as the array elements all share common properties.You have to think a different implementation.

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 2 of 7
(4,795 Views)

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

7.1 -- 2013
CLA
0 Kudos
Message 3 of 7
(4,792 Views)

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

Message 4 of 7
(4,776 Views)

I was thinking that you could add a note to the string to indicate disabled, then handle it in your code as follows:

LIST.png

 

I think I like Ganesan Kani's solution better.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 5 of 7
(4,767 Views)

Hi :

can you send me please this correction you made as vi

 

thanks  alot

0 Kudos
Message 6 of 7
(4,755 Views)

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.

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 7 of 7
(4,743 Views)