05-02-2007 06:34 AM
05-03-2007 03:10 PM
Omer,
There is nothing functionally different between the two methods you are grabbing frames, and they should be able to acquire at the same rate. How are you calculating the frame rate in the Sequence in LabVIEW? Also, try running a Grab example in LabVIEW, and see what frame rate you can achieve there.
Regards,
Jasper S
05-06-2007 02:21 AM
Hi Jasper, thank you for your respose.
I'm using a flat sequence structure to calculate the frame rate. I put clocks at the 1st and 3rd frames of the sequence structure and the IMAQ sequence.vi at the middle (2nd frame). I calculate the difference between the 2 clocks and divide the result by the number of acquired frames to get the number of frames per second.
I couldn't find a grab example that calculates frame rate. Using continous grab and calculating the frame rate (again elapsed time divided by number of frames) I get pretty much the same result as with the sequence.
I attached the sub-vi I'm using for the acquisition, as it might help.
Thanks,
Omer
05-06-2007 08:54 AM
My guess is that you are including acquisition setup time in your calculations. It takes some time to set up the buffers, initialize the camera, etc. You would get more accurate results if all the setup steps were before your timing structure.
My favorite way to measure frame rates is to start a continuous acquisition, then record the frame number and start time. As time goes on, I compare the current frame number and time with the initial values and calculate the frame rate. This converges very rapidly to the actual frame rate.
Bruce