jonnew / Oat

Real-time position tracker for behavioral research
GNU General Public License v3.0
49 stars 19 forks source link

Point Grey Camera::RetrieveBuffer() does not block on first image #11

Open jonnew opened 8 years ago

jonnew commented 8 years ago

I need the RetrieveBuffer() call to block unless an external trigger causes a new frame to be transmitted. The first time it is called, if a previous frame has been placed in the camera's buffer, it will not block and will return the old image. How can I start the acquisition in a "fresh" state, no old buffer hanging around?

This occurs after the camera after stopping acquisition, disconnecting. It even occurs after power cycling the camera. Seems like resetting the DMA controller or network interface card might work, but are ridiculous.

I've contacted PG support for a solution.