06-24-2014 02:15 PM
Solved! Go to Solution.
06-25-2014 02:07 AM
Can you define the event? Front panel event? Trigger from sensor? Software trtigger?
06-25-2014 08:32 AM
the event meant here is a biological event. between the event happening and pressing save we will lose a number of frames (important ones). So we would like to keep a certain amount of frames in memory.
in other words, we would like to save the past frames rather than the once yet to happen.
07-01-2014 04:48 PM
if you want to realize such a functionality, you have to create an array temporary memory location for an image. This means, you have to use the IMAQ create VI many times and save the output of the VI (New Image) in a buffer. now, you have to save the pictures within the array. The array should have the functionality of an ringbuffer. (Overwrite the oldest picture if the array is "full of pictures"). If an Event occurrs, you can save the pictures you need (actually the pictures are in the temporary memory). Be careful realizing such a functionality, because all the pictures of the ringbuffer are saved in the RAM, so you have to make sure that the buffer is not getting too full.
This could be a way how to realize such a functionality, I hope I understood your question correctly.
Best Regards, Fabian
07-04-2014 10:44 AM
We use IMAQdx to capture images at 10 frames/second of biological activity in mice. We have an external sensor that tells us when the event we want has occurred, and we save videos from 2.5 seconds before the event to 5 seconds after. And we do this for 24 mouse stations running simuultaneously, with a recording session lasting about two hours (requires 24 cameras, of course ...).
The basic technique is to configure a number of buffers in the camera (actually, in the driver, I suspect). We save the buffer numbers in a lossy queue, and when we get a signal that an Event has occurred, we start emptying the Queue (which contains buffer numbers -- we get a buffer number, use that to pull up an image, and write that to an image file) until we have saved the proper number of images (75, in the example above).