LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Beginner - Getting the array distinct elements

Hi!

If I have an array like this:

orange, apple, banana, car, bike, orange, car, bus

And I want to get all the elements, but in a distinct way, like this:

orange, apple, banana, car, bike, bus

Is there any function that does this work for me or have I to implement a new one? If somenone has a VI that does something similar... 🙂

Thank you in advance.
0 Kudos
Message 1 of 3
(2,297 Views)
It seems you want to get all unique elements in the order they first appear in the array. Is this correct? Does the final order matter?
 
You need to program this yourself, shouldn't be too hard. Have you tried? 😉
0 Kudos
Message 2 of 3
(2,291 Views)
No, I didn't do the job yet, but I will try.

I hoped that someone knows a function that does the job. Now, I will implement it 🙂

Thank you
0 Kudos
Message 3 of 3
(2,273 Views)