Check out the IMAQ examples. They will show you how to just acquire a single image (Snap), acquire a steady stream of images (Grab), or acquire a fixed number of sequential images (Sequence). This will probably take care of whatever you are doing. If you need a more complex solution, look at the low level examples.
Bruce
Bruce Ammons
Ammons Engineering