In general you do not want to have IMAQ Create in the acquisition loop. If you need to store multiple images in memory, then you should call IMAQ Create once for each unique image you want to keep, before the acquisition starts. Each instance of IMAQ Create must have a unique image name. In this case you will want to use a ring acquisition. Take a look at the LL Ring examples in the LabVIEW examples directory. I have also attached an example below that does a ring acquisition, displays the current image, and displays the difference between the current and previous images.
I have used a shift register to keep track of previous images. This technique will only work if you have setup multiple image buffers, since the image* data type stored in the shift register
is just a reference to an image buffer and not the actual image data.
Regards,
Brent Runnels
Applications Engineer
National Instruments