|
Win32 Systems (Win98, Me, NT, 2000 and XP)
This sample shows you how to perform a triggered grab from any of
the 4 trigger inputs on the PXR800. As soon as a trigger occurs, an
image is captured and displayed.
There is a potential problem with a triggered grab, and this sample illustrates
one solution. The problem is that your program may hang if the trigger NEVER occurs.
The solutions are to use the API functions IsFinished() or
TimedWaitFinished() instead of WaitFinished().
The problem with WaitFinished() is that it will hang your
program until the trigger occurs. In contrast, TimedWaitFinished()
will time out after a period of time that you specify, and allow your program
to regain control.
In this sample you will learn how to do the following:
1. Create a simple control window.
2. Create a video display window.
3. Initialize the PXR frame grabber.
4. Grab individual frames and display them in the video display window.
5. Grab frames and display them in realtime in the video display window.
6. Do a triggered grab.
In the PXR frame grabber samples, we have decided to use two windows
(one for control and one for video display). We do this throughout the samples.
We feel that two windows gives you more flexibility in designing controls
although it does add some complexity.
This program uses ONE external modules that will be common to all of our
samples for the PXR Series frame grabbers.
1. PXR_DISPLAY.C -- video display common code
|