I am making a model for a picking system using conveyors, and I want to create a "route" where the tote travels to a photoeye (pick station) that "belongs" to a rack that contains the SKU I want.
I have managed to extract each photo eye for each SKU that will be picked (SKUs have fixed places), and I now want to extract the unique photoeyes from the array as shown in the picture.
In the PEs array, I have entries /PE2, /PE4 and /PE2. I want the resulting array to just contain /PE2 and /PE4. I've tried to query the array, I've tried to implement algorithms, but I'm having a hard time. If anybody could suggest an approach for this I'd be grateful.