Hello,
I have a vector of MIs starting at MI 250, containing at most 20 elements. It is supposed to act like a FIFO buffer. There is an array of objects moving on a conveyor. Whenever an object triggers a sensor, some integer information is stored at the first available MI in the vector (there is another variable that indicates the number of elements in the vector, not especially relevant to this question). Some time later, when the same object triggers a second sensor, the data at MI250 is to be read, processed, and the vector data is shifted to the left, effectively consuming the first element. I.e. element 1 overwrites element 0, element 2 overwrites element 1, 3 overwrites 2, and so on. Can this be achieved using a Vector: Copy block, as in the attached image? Is it safe to do, am I guaranteed that the copy operation will be executed in the order I mentioned? If this is not a valid way to do what I want to do, please tell me an alternative way.