キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/7
5,165件の閲覧回数

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 件の賞賛
メッセージ2/7
5,160件の閲覧回数

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 件の賞賛
メッセージ3/7
5,157件の閲覧回数

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

メッセージ4/7
5,141件の閲覧回数

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 件の賞賛
メッセージ5/7
5,132件の閲覧回数

Hi :

can you send me please this correction you made as vi

 

thanks  alot

0 件の賞賛
メッセージ6/7
5,120件の閲覧回数

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 件の賞賛
メッセージ7/7
5,108件の閲覧回数