03-22-2006 10:16 AM
Using the HLSequence vc++ sample project as the baseline, Im just
changing the NUM_SEQUENCE_BUFFERS to 300, and use GetTickCount
(10ms granularity) to time it:
---
unsigned long skippedBuffers[NUM_SEQUENCE_BUFFERS] = {0};
errChk(imgSequenceSetup (Sid, NUM_SEQUENCE_BUFFERS, (void
**)ImaqBuffers, skippedBuffers, TRUE, TRUE));
before = GetTickCount();
while ( status )
errChk(imgSessionStatus (Sid, &status, &currBufNum));
after = GetTickCount();
---
After several iterations, it seems the difference in ticks between
the before and after is around 1372... which at 10ms between each
tick, indicates over 13 seconds to complete! At 60hz, Im
thinking 300 frames SHOULD be about 5 seconds.
Are the buffers that IMAQ "Sequence" uses for the capture,
internally dma'd to the *PC's RAM* memory or is it actually using
the *disk* to store it?
What can I do to get it near 60 frames a second?
03-23-2006 06:15 PM