ni.com is currently undergoing scheduled maintenance.

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

Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ copy buffer error

Can anyone tell me why I get this error with the following code?  It is a snippet from a larger app that uses copy image acquisition buffer to display multiple images in a while loop.  I extracted the offending code and I still get the error so it is isolated to the copy image acquisition buffer vi which kicks out a "cannot resize image in an acquisition buffer" error.  A similar application I have written works fine, so I know the methodology is sound, but the IMAQ version is older in the other app (3.1) and I used IMAQ copy instead which is now deprecated in 3.8.
Download All
0 Kudos
Message 1 of 3
(3,906 Views)

Dear ET,

 

The you are trying to copy back into the acquisition buffer. You need to supply a different buffer to the IMAQ Copy Acquired Buffer VI.

 

Best Regards,

 

~Nate 

 

 

0 Kudos
Message 2 of 3
(3,881 Views)
Yes nate is right.The buffer is getting overwriiten.Provide a another buffer with a unique name
0 Kudos
Message 3 of 3
(3,861 Views)