ā05-19-2017 11:03 AM
So more precisely this is the type of vi I've been trying to figure out.
If my input 1D Array String is: A1, A1, A2, A2, A3, W4, W4
It will output: A3
any ideas or links that can help me are appreciated.
Solved! Go to Solution.
ā05-19-2017 11:12 AM
What have you tried so far?
Is the array always sorted?
Try variant attributes! š
ā05-19-2017 11:35 AM
I've tried manipulating delete duplicate vi's to try and take out not just one, but both elements if they match to no avail.
and yes I use the sort 1D array to make sure the array is always sorted.
ā05-19-2017 02:33 PM
ā05-19-2017 03:34 PM
The Search Array_ogtk.vi (from the OpenG Toolkit) returns an array of the indices that match the search element. If the returned indices array size is 1 then the element is unique. You can use this with conditional indexing output of a FOR loop. This can also be optimize for large array by sorting the input array and using the last index found as the start index of the Search Array_ogtk.vi for the next loop iteration.
Ben64
Ben64
ā05-22-2017 08:42 AM
Thanks for all your help guys! I ended up finding a workaround using some DB Tools and item name property nodes to get my two multi-column list-boxes communicating properly.
However, I tried out both of your solutions and they worked like a charm!
Also didn't know about the OpenG Toolkit before this, I'll have to continue exploring what else it has included with it