PXR Family

Datasheet (PDF)

Manual & Guide

Application Notes

Driver Updates

Example Source Code

Compatible Image Processing Software

Product FAQ

All Frame Grabbers

Home Page


Feedback at:
CSinfo@cyberoptics.com or
1-800-366-9131

PXR_MULTI_CAM - Camera Switching Sample

Win32 Systems (Win98, Me, NT, 2000 and XP)

This sample shows you how to switch among cameras. The PXR800 can have a maximum of 4 cameras attached.

There are a number of different ways to implement camera switching depending on what you know about your video inputs and your speed requirements. The best way to explain this program is to ask you to look at the function "SwitchCameras()". This function shows four methods that you can use, depending on what you know about your video inputs.

Case 1:
This case assumes you know nothting about your video inputs. It will always work with any combination of video or no video.

Case 2:
This case assumes you have like video inputs, i.e. all NTSC, and the images may be different sizes.

Case 3:
This case assumes you have like video inputs, i.e. all NTSC, and the images are all the same size.

Case 4:
This case assumes you have like video inputs, i.e. all NTSC, and all the cameras are genlocked.

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. Switch among 4 cameras.

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