You can use low level IMAQ acquisition VIs to set up a continuous loop of buffer images. Essentially, it is a sequence that keeps looping. You can check which image was most recently acquired, and examine it for the bead. By subtracting the indices of the two images you are using, you can find out how many images were between them. Add one and divide by the frame rate to get time. I have used this method to acquire a loop of several hundred images with no dropped frames.
I don't know how fast your bead is moving, but what I would probably do is this:
In a fast loop, extract the most recent image and try to locate the bead. If it is found, record the position and index. When the bead is present, you should end up with a few position
& index pairs. Once it is out of view, take the first and last pairs and use them to calculate the velocity. This depends on the bead being present in several images and having time to analyze them.
If the bead is moving really fast, you could monitor the most recent image for the presence of the bead, then once you find it just look a few images forward or backward to get another position.
Bruce
Bruce Ammons
Ammons Engineering