|
Win32 Systems (Win98, Me, NT, 2000 and XP)
This sample shows you how to perform a triggered grab. The program
will wait for a trigger from one of four inputs. The most recently
triggered image will be captured and then displayed in a window.
Notice that we are using the time TimedWaitFinished function in this
example. With out this call the program can stall forever waiting on
a trigger so the Grab can finish.
One way to detect and handle stalled Grabs is to use the IW_QUEUED
option to add the Grab to the frame grabber’s queue, and then use
TimedWaitFinished to wait for the Grab to complete. If the operation
being waited on does not finish within the requested number of milliseconds
TimedWaitFinished will return and allow the program to take additional
action.
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.
The Visual Basic support for the PXR800 requires the following header files and libraries.
1. PXR800API.BAS
2. PXR800.BAS
3. PXRFRAME.BAS
4. IMAGINFO.BAS
5. PXR800_DISPLAY.BAS
6. PXR800.DLL
7. PXRFRAME.DLL
8. PXR800_DISPLAY.DLL
|