LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

table

Hello Guys,

 

I would like to select cell contains from a table using a selection box, and therefore rebuilt a new array  based on my selection.

my table is having one colum of databyte, in total 26 rows.So let say that I just want extract few elements(6elements) from this column and rebuild a new table of those selected elements(6).

Is there any easy way to do that?

 

Thanks in advance for the help.

 

Regards,

0 Kudos
Message 1 of 10
(3,697 Views)

Hi BENIO,

you can use the "Array subset" function.

 

Mike

0 Kudos
Message 2 of 10
(3,695 Views)

Thanks for the reply but with array subset I cannot do multiple selection?

I would like to combine a selector box with the respective row and build a new table with only selected rows.

Any idea?

0 Kudos
Message 3 of 10
(3,692 Views)

Hi BENIO,

you can read the property "selected ...". Go through a loop and index the selected rows. Use the index array function and autoindey the selected rows input not the table input. Wire the result to the other side of the loop and you have your new array.

 

Hope it helps.

Mike

0 Kudos
Message 4 of 10
(3,686 Views)

my selection is done in a random way.

0 Kudos
Message 5 of 10
(3,685 Views)

Hi BENIO,

this should be no problem. Do you have a table or a multicoulmn listbox?

 

Mike

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

Hi Mike,

I am just using a table with one column

0 Kudos
Message 7 of 10
(3,679 Views)

Hi BENIO,

see the attached example please.

 

Hope it helps.

Mike

0 Kudos
Message 8 of 10
(3,669 Views)

Hello Mike,

Can you tell me how it works?

I cannot select radomly the value,let'ssay I want to select A, K, M and O,so I have an array of AKMO.How to do it?

 

Thanks

0 Kudos
Message 9 of 10
(3,651 Views)

Hi BENIO,

afaik, this is not possible with a table, but i´m not 100% sure. You can definitively do it with a multicolumn listbox.

 

Hope it helps.

Mike 

0 Kudos
Message 10 of 10
(3,643 Views)