ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
03-16-2010 04:29 PM
I'm using the Vision Acquisition Express VI to capture a continuous image sequence. When running, the video looks good, but I can't figure out how to save all the images onto my hard drive. I've tried connecting various VIs (e.g. IMAQ Write File 2 VI, among others) to the 'Image Out' terminal, but either don't get anything or only get the last image saved. I've mostly tried putting VIs inside my acquisition loop so that each file is saved as it's acquired. Perhaps this isn't possible? Does everything need to go into an array first before saving? Eventually I'd like to pass these images on to Vision Assistant Express VI for processing, but first need to be able to save the original image sequence in some easily readable format (BMP, JPEG, TIFF, etc).
And to add another small wrinkle, I'd love to be able to view images in real-time using the Vision Acquisition Express VI without saving, and then press a button on the front panel to begin saving when I so choose.
If these tasks aren't possible with the Express VI then I guess I'll try and build everything from standard VIs, but I'd rather not if that's not necessary.
I'm using a Prosilica (AVT) GC GigE camera, PCI 6010, and have all necessary software available.
Any help is appreciated. Thanks.
03-17-2010 01:51 AM
03-17-2010 04:43 PM
Thanks for the example. I couldn't find a VI that looks exactly like your 'acquire' vi, but the setup works great with the Vision Acq Express VI that I'm using. I'm able to acquire and save images simultaneously. However, I haven't been able to configure a setup that allows me to acquire without saving, then hit a button to begin saving, then hit this button again to stop saving (but continue to acquire the whole time). Below is my code for simultaneous acquiring and saving, followed by an attempt at adding a 'saving' loop controlled by a button. I've tried putting a saving loop inside the aquisition loop and tried without having a second loop at all, but haven't had any success. Any tips for this?
Thanks.
03-17-2010 11:34 PM
03-18-2010 01:04 AM
03-18-2010 04:13 PM
Thanks, it helped, but still haven't gotten it to work the way I'd like. I used your suggestion as shown below. It starts acquiring without saving, as it should, but each time I push the save button it saves one image, rather than saving continuously until I tell it to stop.
03-18-2010 05:03 PM
maybe you have to give it some type to wait for the images to be save in windows.
03-19-2010 04:41 AM
You can use a case structure like this. Remember to keep the boolean in switch when pressed state.
I am not able to attach any image. I am getting an "unexpected error" or something.
The suggestion is use a case structure inside the while loop. So the default which is a false will have one acquire and the true will have one acquire image. In the true constant have your save thing. connect both the images using a local variable.
Will post the scrren shot if i am able to......
03-19-2010 04:42 AM - edited 03-19-2010 04:43 AM
You can use a case structure like this. Remember to keep the boolean in switch when pressed state.
I am not able to attach any image. I am getting an "unexpected error" or something.
The
suggestion is use a case structure inside the while loop. So the
default which is a false will have one acquire and the true will have
one acquire image. In the true constant have your save thing. connect
both the images using a local variable.
Will post the scrren shot if i am able to......
Please ignore........
03-19-2010 04:43 AM