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_OFFSET_GAIN - Gain and Offset Sample

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

This sample shows you how to use the Offset and Gain features of the PXR800. In this sample we use Windows scroll bars to let you control the offset and gain, but in a program that you write, you might use different types of controls. Nonetheless, the use of the offset and gain functions is the same regardless of the method used for control.

The functions used in this sample are:

GetFineGain()
SetFineGain()
GetOffset()
SetOffset()

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 frames and display them in realtime in the video display window.
5. Change and retrieve (set and get) gain and offset values.

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