Andrew,
The resolution of the camera will tell you the smallest object that you will be able to measure in your image. For example, if your camera is 640 x 480, then you will have 640 columns of pixels and 480 rows. If the image area that you are analyzing corresponds to 64mm by 48mm, then you will have 10 pixels/mm in your image. You can achieve this same goal on a larger image area by using a camera with a greater resolution. In order to determine what lens you will need, you need to look at the working distance, the smallest object that you want to be able to discern in the image, and the size of the area under inspection.
To look at different cameras that you could use, I would suggest taking a look at the NI Camera Advisor, as it contains a list of cameras that have been tested and are known to work with the different NI framegrabber boards and the NI-IMAQ drivers.
Industrial Camera Advisor
www.ni.com/cameras
Regards,
Scott R.
Applications Engineer
National Instruments
Scott Romine
Course Development Engineer
National Instruments