06-30-2009 03:59 PM
Solved! Go to Solution.
07-01-2009 03:54 PM
07-01-2009 04:17 PM
07-06-2009 10:01 AM
Certainly. You can wire the case structure to an enum and choose the enum based on which case you are in (or you can use two case structures with T/F). While in the case structure you can wire the image output of the grab to the image input of the copy acquired buffer. Then you can use the IMAQ Write File 2 to write the image to a file. This will all be in the case structure. Take a look at the detaied help for copy acquired buffer VI to help you choose your overwrite mode. This should give you more information about choosing your buffers. Please let me know if this clears things up.
07-07-2009 02:42 PM
07-08-2009 10:41 AM
07-08-2009 10:57 AM
07-08-2009 11:00 AM
07-08-2009 12:05 PM
Hi Bonesaw,
Whether you grap or snap continuously is up to you. If you don't care about viewing continuously you can snap continuously. Another option is to use the IMAQ sequence VI which grabs a series of images. You can then save those images without worrying about the buffer.
For the buffer you can use the Acquired buffer number output of the Grab acquire VI as the buffer input to your copy acquired buffer VI.
The reason that only the last image is saved is because you are using the same file path for each save. That means that you are overwriting each image when a new image comes up. You can avoid this by building the file path and incorporating the increment counter in the file path. That will give you a new file name for each iteration of the loop.
Nick Keel
Applications Engineering
National Instruments
07-08-2009 01:41 PM