09-27-2010 12:19 PM
Hello everyone,
First of all, thank you for deciding to read my post!
I am having problems with acquiring images at fast frame rates. I am using a hamamatsu camera (ORCA-ER), PCI1422 gramegrabber card and LabWindows/CVI.
The objective is to acquire images in triggered mode. Specifically we send a pair of pulses to start and stop the acquisition of an image followed by image readout and we do this repetitively.
I give below the code segment for the acquisition step. The code was written many years ago by someone else in the group. I was unable to find any documentation for how this code was developed.
The problem that I have is that for exposure times >= 150 msec (image size = 128x128), the code runs fine. However, if I reduce the exposure time below 120 msec, then the code gets stuck inside the while loop in Step 5. For these exposure times I have noticed that code successfully acquires the first image, but gets stuck in the while loop in STEP 5 for the second image. Introducing a delay in step 4 avoids this problem, but this compromises my acqusition speed.
The value of the returnStatus variables is zero in all cases (including the case when the code get stuck inside the while looop).
I noticed that the commands that I am using to send the trigger pulses and to poll for the availability of new data are high-level commands. Therefore I was wondering whether there are any speed issues related to these commands or is this a problem with my framegrabber board?
As I am not sure if the problem that I am experiencing is software/code related or hardware (framegrabber) related . Therefore this query has also been posted in other forums.
I welcome all suggestions and comments.
Thank you very much for reading my post.
Sripad
09-28-2010 07:55 PM - edited 09-28-2010 07:56 PM
While the Machine Vision forum seems to be the most logical place for this request, I notice that there is already an active thread on an identical post here.
Thanks!
09-28-2010 08:00 PM
Hello,
Thanks for reading my post!
Yes I did post the question in both forums as I was not sure if the problem was hardware or software related (I did mention this in my post).
Thanks!
09-28-2010 08:13 PM
No problem Sripad, and completely understandable. But moving forward it will be most efficient to consolidate our efforts into one active thread, so hopefully linking these threads will unite our CVI and Vision users.
Thanks!