Machine Vision

Showing results for 
Search instead for 
Did you mean: 

Strange IMAQ Error Message: "ni: A frame has been dropped and the acquisition has been canceled."



I am getting a strange error trying to use the NI PCIe-1427 with the MATLAB image acquisition toolbox configured with continuous acquisition.  After about 5 minutes of acquisition, I get the error below:


??? ni: A frame has been dropped and the acquisition has been canceled.


Does anyone have any clues as to why I am getting this error / where I can find out what causes it?  I need to acquire several hours worth of data and this error completely aborts my acquisition.



0 Kudos
Message 1 of 5

Hi Ysirotin,



What driver version do you have on your system? Can you post a screesnshot of the errors please.


Thanks and have a great day.


0 Kudos
Message 2 of 5



Turns out that I found the problem.  I had a slow memory allocation in my MATLAB code and this delay allowed too many frames to be accumulated in memory.  I still do not know the source of the exact text of the error, but upon removing the slow memory allocation the error no longer occurs.  I believe that it may have resulted from a buffer overrun of some sort in the underlying driver.


Given that this no longer poses a problem for me, I will not pursue it further.


Thank you for your help!

0 Kudos
Message 3 of 5

Hi, I have encountered the same problem.

What do you mean by "slow memory allowcation process"?
I have some 'getdata' functions there.

Could you please tell me how you get ride of that?


Thank you.


0 Kudos
Message 4 of 5



Unfortunately the issue appears to reside in MatLab and this thread is over 2 years old.  It may be worth contacting MathWorks for additional assistance or creating a new thread.

Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 5 of 5