ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving image sequence from Vision Acquisition Express VI

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.

0 Kudos
Message 1 of 22
(9,932 Views)
fil.JPG
Message 2 of 22
(9,918 Views)

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.

 

Imaging and Saving.JPG

Imaging with Saving OnOff.JPG 

0 Kudos
Message 3 of 22
(9,900 Views)
acq.JPG
Message 4 of 22
(9,893 Views)
Worked,helped?
0 Kudos
Message 5 of 22
(9,889 Views)

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.

Imaging with Saving OnOff.JPG

0 Kudos
Message 6 of 22
(9,871 Views)

maybe you have to give it some type to wait for the images to be save in windows.

 

Best regards,
Krispiekream
0 Kudos
Message 7 of 22
(9,866 Views)

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......

 

Message 8 of 22
(9,851 Views)

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........

Message Edited by muks on 03-19-2010 03:13 PM
0 Kudos
Message 9 of 22
(9,850 Views)
case.JPG
Message 10 of 22
(9,849 Views)