Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Sequentially subtracted images saving to AVI

Hello all,

                     I am trying to aquire images in LV 8.2 using low level VI s in vision button in function palette. I configure initailly buffer list and later extract images using IMAQ extract vi. Now what i want to do is say acquire 10th image from buffer 10 and store until exract vi is called again. I want to 11th image to be extracted and saved in another buffer say 11th buffer until extract vi is called again. In the mean time i want to subtract 10th image from 11th image and display the result in a window. I am trying to save the displayed image sequence into AVI file using grab function, but it is showing error.

 

I have attached the VI which used to do this work and error as well. Could anybody has any idea to reolve this problem?? I have postedpreviously in the forumfor the same process to save individual images instead of AVI. Even that VI is not working.Please let meknow if you have any idea. Thank you very much everybody!!

Message Edited by viswa on 01-04-2010 08:45 AM
0 Kudos
Message 1 of 7
(4,242 Views)

Hi Viswa,

 

This error code seems to be a timeout, so the aquire image is not getting all the data in time. Maybe try putting a sequence structure before or after the aquire image with a wait function to see if that helps at all.

 

Kind Regards,

Owen.S
Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(4,210 Views)

Hi Owen,

                       Thanks for your reply. I have modfied the vi but not with your suggested way, works fine in real time to detect motion when there is change in amount of light between two frames. All i want to do now is to save the subtracted images in sequence of say 5 images. We can do that by saving into AVI orusing sequence. I could not able to save into AVI due to som erros.

 

 I have attched here the modified vi which is working for motion detection. If you have any idea please suggest me.

 

 

0 Kudos
Message 3 of 7
(4,205 Views)

Hi Viswa,

 

What are the error messages you are getting? How do you want to save these 5 images? As data? or Picture files?

 

Kind Regards,

Owen.S
Applications Engineer
National Instruments
0 Kudos
Message 4 of 7
(4,201 Views)

Hi Owen,

                  Thanks for your help. The error message says the AVI session is not opened. The reason was placement of AVI create VI before extraction buffer so there was no image extracted. Now i have modified it and looks working well. I have tested with live image acquisition and subtracted images saving to AVI format. Thanks for your quick replies. 

 

Regards

Viswa

Message Edited by viswa on 01-05-2010 09:42 AM
0 Kudos
Message 5 of 7
(4,197 Views)

Hi Viswa,

 

Great, I'm glad you got everything working correctly.

 

Kind Regards,

Owen.S
Applications Engineer
National Instruments
0 Kudos
Message 6 of 7
(4,194 Views)
If any modifications or other required are needed in future will post back....
Message Edited by viswa on 01-05-2010 09:56 AM
0 Kudos
Message 7 of 7
(4,192 Views)