LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sorting 2D array to 1D array by combo box

I have 2D raw data, and i wanna use the combo Box to sort specific Data.

01. Choose ASD

02. Sort the left side Raw 2D array data 

03. Output new 1D array(related ASD) like 1 and 2

or

01. Choose A

02. Sort the left side Raw 2D array data 

03. Output new 1D array(related A) like 3 and 4

圖片 1.png

0 Kudos
Message 1 of 3
(2,548 Views)

Install the OpenG Array toolkit from VIPM, it is very useful for such array operations (but I am sure someone could come up with an even more compact/faster solution 🙂 😞

 

opengarray.png

Message 2 of 3
(2,523 Views)

If you don't want//can't/aren't allowed to install the toolkit you'll need to create the functions with e.g. this code.

Remove Duplicates and filter list.png

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 3 of 3
(2,510 Views)