Data Translation DT3157 User manual

DT3157
UM-15024-H
User’s Manual

Eighth Edition
August, 2002
Data Translation, Inc.
100 Locke Drive
Marlboro, MA 01752-1192
(508) 481-3700
www.datatranslation.com
Fax: (508) 481-8620
E-mail: [email protected]
Copyright © 1996, 1998, 1999, 2000, 2001, 2002
by Data Translation, Inc.
All rights reserved. No part of this publication
may be reproduced, stored in a retrieval system,
or transmitted, in any form by any means,
electronic, mechanical, by photocopying,
recording, or otherwise, without the prior
written permission of Data Translation, Inc.
Information furnished by Data Translation, Inc.
is believed to be accurate and reliable; however,
no responsibility is assumed by Data Translation,
Inc. for its use; nor for any infringements of
patents or other rights of third parties which
may result from its use. No license is granted by
implication or otherwise under any patent rights
of Data Translation, Inc.
Use, duplication, or disclosure by the United
States Government is subject to restrictions as set
forth in subparagraph (c)(1)(ii) of the Rights in
Technical Data and Computer software clause at
48 C.F.R, 252.227-7013, or in subparagraph (c)(2)
of the Commercial computer Software -
Registered Rights clause at 48 C.F.R., 52-227-19 as
applicable. Data Translation, Inc., 100 Locke
Drive, Marlboro, MA 01752.
Data Translationand GLOBAL LABare
registered trademarks, and Imaging OMNI
CD, and DT-Open Layers, Frame Grabber
SDK, and DT Vision Foundryare trademarks
of Data Translation, Inc.
All other brand and product names are
trademarks or registered trademarks of their
respective companies.

Radio and Television Interference
This equipment has been tested and found to comply with CISPR
EN55022 Class A and EN50082-1 (CE) requirements and also with the
limits for a Class A digital device, pursuant to Part 15 of the FCC
Rules. These limits are designed to provide reasonable protection
against harmful interference when the equipment is operated in a
commercial environment. This equipment generates, uses, and can
radiate radio frequency energy and, if not installed and used in
accordance with the instruction manual, may cause harmful
interference to radio communications. Operation of this equipment in
a residential area is likely to cause harmful interference, in which case
the user will be required to correct the interference at his own
expense.
Changes or modifications to this equipment not expressly approved
by Data Translation could void your authority to operate the
equipment under Part 15 of the FCC Rules.
Note: This product was FCC-Certified under test conditions that
included use of shielded cables and connectors between system
components. It is important that you use shielded cables and
connectors to reduce the possibility of causing interference to radio,
television, and other electronic devices.
Canadian Department of Communications Statement
This digital apparatus does not exceed the Class A limits for radio
noise emissions from digital apparatus set out in the Radio
Interference Regulations of the Canadian Department of
Communications.
Le présent appareil numérique n’émet pas de bruits radioélectriques
dépassant les limites applicables aux appareils numériques de la class
A prescrites dans le Règlement sur le brouillage radioélectrique
édicté par le Ministère des Communications du Canada.


v
Table of Contents
About this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
Intended Audience. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
What You Should Learn from this Manual. . . . . . . . . . . . . . . . . . ix
Conventions Used in this Manual . . . . . . . . . . . . . . . . . . . . . . . . . . x
Related Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Where to Get Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
Chapter 1: Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Supported Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Chapter 2: Principles of Operation . . . . . . . . . . . . . . . . . . . . 5
Video Input Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Video Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Videos Input Channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Pixel Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Internal Pixel Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
External Pixel Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
External Trigger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Input Look-Up Table. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Sync Signals. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Sync Source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Sync Master Mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Sync Sentinel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Clock Output, Expose, and Reset Signals . . . . . . . . . . . . . . . . . . . 16

Contents
vi
Video Area
Active Video Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Horizontal Video Signal . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Vertical Video Signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Frame (Region of Interest) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Frame Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Types of Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Scaling Frames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Frame Storage Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Passthru Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Passthru Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Source Origin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Passthru Scaling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Passthru LUT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Overlays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Acquisition Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Digital I/O Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Chapter 3: Supported Device Driver Capabilities. . . . . . . . 35
DT3157 Device Driver Capabilities . . . . . . . . . . . . . . . . . . . . . . . . 36
Initialized Control Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Chapter 4: Programming Flowcharts. . . . . . . . . . . . . . . . . . 57
Single-Frame Acquisition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Multiple-Frame Acquisition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Passthru without Overlays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Passthru with Overlays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

Contents
vii
Chapter 5: Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . 85
General Checklist . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Service and Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Telephone Technical Support. . . . . . . . . . . . . . . . . . . . . . . . . . 90
E-Mail and Fax Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
World-Wide Web . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
If Your Board Needs Factory Service. . . . . . . . . . . . . . . . . . . . . . . 94
Appendix A: Specifications . . . . . . . . . . . . . . . . . . . . . . . . . 95
Appendix B: Connector Pin Assignments . . . . . . . . . . . . . 99
Appendix C: Modifying the Device Driver . . . . . . . . . . . . 103
Windows 98 and Windows Me Procedures . . . . . . . . . . . . . . . . 104
Adding a Board to the Device Driver Configuration after
System Startup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Modifying a Board in the Device Driver Configuration . . 106
Uninstalling the Device Driver . . . . . . . . . . . . . . . . . . . . . . . 108
Windows 2000 Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Adding a Board to the Device Driver Configuration. . . . . 109
Modifying a Board in the Device Driver Configuration . . 111
Removing a Board from the Device Driver Configuration 113
Uninstalling the Device Driver . . . . . . . . . . . . . . . . . . . . . . . 114
Windows XP Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Adding a Board to the Device Driver Configuration. . . . . 115
Modifying a Board in the Device Driver Configuration . . 117
Removing a Board from the Device Driver Configuration 119
Uninstalling the Device Driver . . . . . . . . . . . . . . . . . . . . . . . 120
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121

Contents
viii

ix
About this Manual
This manual describes the features of the DT3157 frame grabber
board and how to use the DT3157 Device Driver with the
Frame Grabber SDKto write an application program.
Intended Audience
This document is intended for engineers, scientists, technicians, or
others responsible for programming and/or using the DT3157 board
to perform machine vision and/or image analysis operations. It is
assumed that you have some familiarity with imaging principles and
that you are familiar with the operating characteristics of your video
source.
If you are writing application programs using the device driver and
the Frame Grabber SDK, it is also assumed that you are familiar with
the MicrosoftWindows98, Windows Me (Millennium Edition),
Windows 2000, or Windows XP operating system and with the
Microsoft C compiler.
What You Should Learn from this Manual
This manual provides detailed information about the features of the
DT3157 board and the DT3157 Device Driver to allow you to access
the board’s capabilities using software. It is organized as follows:
•Chapter 1, “Overview,” describes the major features of the board,
as well as the supported software and accessories for the board.
•Chapter 2, “Principles of Operation,” describes all of the board’s
features and how to use them in your application.
•Chapter 3, “Supported Device Driver Capabilities,” describes the
capabilities supported by the DT3157 Device Driver and the
initialized control values.

About this Manual
x
•Chapter 4, “Troubleshooting,” describes the processes you must
follow to program the DT3157 board using the DT-Open
LayersFrame Grabber SDK and DT3157 SDK Extensions.
•Chapter 5, “Troubleshooting,” provides information that you can
use to resolve problems with the board and the device driver,
should they occur.
•Appendix A, “Specifications,” lists the specifications of the
board.
•Appendix B, “Connector Pin Assignments,” shows the pin
assignments for the connectors on the board.
•Appendix C, “Modifying the Device Driver,” describes how to
add, modify, and remove a board from the device driver
configuration, and uninstall the device driver, if necessary.
• An index complete this manual.
Conventions Used in this Manual
The following conventions are used in this manual:
• Notes provide useful information that requires special emphasis,
cautions provide information to help you avoid losing data or
damaging your equipment, and warnings provide information to
help you avoid catastrophic damage to yourself or your
equipment.
• Items that you select or type are shown in bold.
•Courier font is used to represent source code.

About this Manual
xi
Related Information
Refer to the following documents for more information on using the
DT3157 board:
•DT3157 Getting Started Manual (UM-18308), included on the
Imaging OMNI CDprovided with the DT3157 board, describes
how to set up, install, and wire signals to the DT3157 board, how
to install the DT3157 software and DT3157 Device Driver, and
how to verify the operation of the board.
•Frame Grabber SDK User’s Manual (UM-13442) and online help,
included on the Imaging OMNI CD provided with the DT3157
board, describe the Dynamic Linkable Library (DLL) that you can
use to write image acquisition application programs.
•DT-Active Open Layers User’s Manual (UM-17325), available from
Data Translation, describes DT-Active Open Layers, an ActiveX
control, which allows you to use Data Translation PCI frame
grabber boards within graphical programming environments
such as Microsoft® Visual Basic® and Visual C++®.
•GLOBAL LAB Image/2 User’s Manual (UM-17790) and GLOBAL
LAB Image/2 API Manual (UM-17792),available from Data
Translation, describe how to use GLOBAL LAB® Image/2 and
GLOBAL LAB Image/2 Streamlineto create scientific
applications using object-oriented image processing tools.
•DT Vision Foundry User’s Manual (UM-17755)and DT Vision
Foundry API Manual (UM-17757), available from Data
Translation, describe how to use DT Vision Foundryto create
machine vision applications using object-oriented image
processing tools.
•PCI Specification: PCI Local Bus Specification, PCI Special Interest
Group, Hillsboro, OR., Revision 2.0, (503) 696-2000.
• Bt254 Monolithic CMOS Triple 8-bit Image Digitizer, Brooktree
Corporation, (619) 452-7580.

About this Manual
xii
• SAA7116 Digital Video to PCI Interface, Philips Semiconductors,
(800) 234-7381.
Additionally, it may be helpful to read other material in order to gain
a better understanding of image processing concepts, algorithms, and
their applications. Data Translation's Technical Support Department
recommends the following resources for understanding image
processing concepts, processing, and coding:
Baxes, Gregory A. Digital Image Processing, Principles &
Applications. New York: John Wiley & Sons, 1994.
Introduction to image processing and hardware/software
basics.
Benson, K. Blair, and Donald G. Fink. HDTV Advanced TV for the
1990's. New York: McGraw-Hill, 1990. Details high-definition
television concepts.
Brooktree Corporation. Brooktree Applications Handbook - Graphics
and Imaging Products. San Diego: Brooktree Corporation,
1991. Product data book and application examples.
Castleman, K. R. Digital Image Processing. Englewood Cliffs, NJ:
Prentice-Hall, 1987. Explains major image processing
concepts and mathematical concepts involved in digital
image manipulation.
Cunningham, John E. Cable TV. 2nd ed. Indianapolis: Howard W.
Sams & Company, Inc., 1987. Provides the basics of cable
television.
Foley, J. D., and A. Van Dam. Fundamentals of Interactive Computer
Graphics. Addison-Wesley: Reading, MA, 1984. Provides
information on geometric functions.
Friedhoff, Richard M., and William Benzon. The Second Computer
Revolution, Visualization. New York: Harry N. Abrams, Inc.,
1989. Covers the history of image processing technology.

About this Manual
xiii
Gonzalez, Rafael C., and Paul Wintz. Digital Image Processing.
Menlo Park, CA: Addison-Wesley, 1987. Explains major
image processing concepts and mathematical concepts
involved in digital image manipulation, including FFT
processing, filtering operations, geometric functions,
histograms, and linear equalization.
Held, Gilbert. Data Compression Techniques and Applications:
Hardware and Software Considerations. 3rd ed. Somerset, NJ:
John Wiley & Sons, Inc., 1991. Covers various techniques
currently used for data compression; includes programming
examples.
Holzmann, Gerard J. Beyond Photography - The Digital Darkroom.
Englewood Cliffs, NJ: Prentice-Hall, 1988. Introduces and
explains image editing; includes programming examples.
Ingram, Dave. Video Electronics Technology. Blue Ridge Summit,
PA: Tab Books, Inc., 1984. Explains the basic electronics used
in video devices.
Kiver, M. S. Color Television Fundamentals. New York:
McGraw-Hill, 1977. Covers television and video basics.
Lindley, Craig. Practical Image Processing in C. Somerset, NJ: John
Wiley & Sons, Inc., 1991. Explains basic image processing
techniques using C, provides many programming examples,
covers TIFF and PICT file formats, and describes how to map
images into VGA memory space.
Luther, Arch C. Digital Video in the PC Environment. New York:
McGraw-Hill, 1991. Explains Digital Video Interactive (DVI)
technology.
National Semiconductor Corporation. Linear Applications
Handbook. Santa Clara, CA: National Semiconductor
Corporation, 1986. Explains broadcasting standards and
major circuit components of frame grabber boards.

About this Manual
xiv
Pratt, William K. Digital Image Processing. Somerset, NJ: John
Wiley & Sons, Inc., 1991. Detailed text on image processing,
including morphological processing, feature extraction,
image segmentation, and shape analysis.
Reid, Christopher E. and Thomas B. Passin. Signal Processing in C.
Somerset, NJ: John Wiley & Sons, Inc.
Rimmer, Steve. Bit-Mapped Graphics. Blue Ridge Summit, PA: Tab
Books, Inc., 1990. Details digital image file formats and image
manipulation after digitizing.
Rimmer, Steve. Graphical User Interface Programming. Blue Ridge
Summit, PA: Tab Books, Inc., 1992. Covers various techniques
currently used for GUI programming; gives insight into how
Microsoft Windows was written/implemented along with
the design aspects related to windows programming;
includes programming examples.
Rosenfeld, Azriel, and Avinash C. Kak. Digital Picture Processing.
New York: Academic Press, Inc., 1990. Describes image
processing techniques and concepts.
Russ, John C. Computer-Assisted Microscopy, The Measurement
and Analysis of Images. New York: Plenum Press.
Serra, J. Image Analysis and Mathematical Morphology. London:
Academic Press, Ltd., 1982. Provides information on
morphological processing.
Smith, C. Cecil. Mastering Television Technology. Richardson, TX:
Newman Smith Publishing Company, Inc., 1988. Describes
current video technology and concepts.
Tektronix, Inc. Television Measurements - NTSC Systems.
Beaverton, OR: Tektronix, Inc., 1989. Covers test equipment
and broadcasting standards.

About this Manual
xv
Ulichney, Robert. Digital Halftoning. Cambridge, MA: The MIT
Press, 1987. Describes image manipulation, creation, and
analysis in the digital environment.
Watkinson, John. The Art of Digital Video. Stoneham, MA: Focal
Press, 1990. Provides an in-depth description of digital video
fundamentals.
Where to Get Help
Should you run into problems installing or using the DT3157 board,
our Technical Support Department is available to provide technical
assistance. Refer to Chapter 5 for more information. If you are outside
the U.S. or Canada, call your local distributor, whose number is listed
in your Data Translation product handbook, or contact the Data
Translation web site (www.datatranslation.com).

About this Manual
xvi

1
1
Overview
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Supported Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Chapter 1
2
Features
The DT3157 frame grabber accepts video from digital input sources,
and uses the host system's system memory to store images and the
host system's display controller to display images. It is suitable for
both image analysis and machine vision applications.
Key features of the DT3157 board are summarized as follows:
• Operates as a PCI bus master;
• Accepts 8-, 10-, 12-, 14-, or 16-bit monochrome video from a
single RS-422 video channel (programmable to 2 KB x 2 KB, 4 KB
x 1 KB, or 1 KB x 4 KB), or 8-bit monochrome from two RS-422
video channels (programmable to 1 KB x 1 KB);
• Supports Kodak dual 8-bit video format (such as the Model
ES1.0);
• Supports up to 20 MHz on a single channel (8 to 16 bits), and
40 MHz for dual channels;
• Provides real-time image transfer to host memory or to the
display frame buffer;
• Provides real-time scaling via decimation up to 1/16 size (except
in dual-channel mode);
• Accepts an external trigger;
• Provides an input look-up-table that supports single- and
dual-channel mode;
• Provides eight TTL lines, each programmable as either input or
output; and
• Provides a standard SCSI-II, 68-pin, D-shell connector for I/O
connections.

Overview
3
1
1
1
1
1
1
1
1
1
Supported Software
The following software is available for use with the DT3157 board:
•DT3157 Device Driver −This software is provided on the
Imaging OMNI CD, which is shipped with the board. You must
install this device driver to use a DT3157 board with any of the
supported software packages or utilities. Refer to the DT3157
Getting Started Manual for information on installing the device
driver.
•DT-Acquire −This software is provided on the Imaging OMNI
CD, which is shipped with the board. This utility allows you to
verify the operation of your board during startup. Refer to the
DT3157 Getting Started Manual for information on installing and
using this utility.
•32-Bit Frame Grabber SDK −Use this software package,
provided on the Imaging OMNI CD, if you want to develop your
own application software for the DT3157 board using the
Microsoft C compiler in Windows 98, Windows Me, Windows
2000, or Windows XP.
•DT-Active Open Layers −Order this optional software package
if you want to use the DT-Active Open Layers ActiveX control to
access the capabilities of the DT3157 board using Microsoft
Visual Basic or Visual C++.
•GLOBAL LAB Image/2 −Order this optional software package if
you want to develop scientific applications using object-oriented
image processing tools.
•DT Vision Foundry −Order this optional software package if
you want to develop machine vision applications using
object-oriented image processing tools.
Refer to the Data Translation catalog for information on additional
software packages available for the DT3157 board.

Chapter 1
4
Accessories
The following accessories are available for the DT3157 board:
•EP-299 cable −The EP299 cable is for use with Kodak (and
similar) digital cameras. The cable provides connection between
the DT3157 and the camera’s 68-pin, D-shell connector. It also has
a BNC connector at the camera end for connecting an external
trigger, and a 9-pin, RS-232 connector at the board end for
connecting other signals. This cable is 9 feet (2.75 m) long, and is
constructed with 105 Ωdifferential, 28 AWG wire, aluminum
polyester foil cover, and tinned copper-braid shielding.
•EP-300 cable −The EP300 cable is for use with EG&G (and
similar) digital cameras. The cable provides connection between
the DT3157 and the camera’s 37-pin, D-shell connector. It also has
a BNC connector at the camera end for connecting an external
trigger. This cable is 9 feet (2.75 m) long, and is constructed with
105 Ωdifferential, 28 AWG wire, aluminum polyester foil cover,
and tinned copper-braid shielding.
•EP-301 cable −The EP301 cable is for use with Pulnix (and
similar) digital cameras. The cable provides connection between
the DT3157 and the camera’s 31-pin, D-shell connector. It also has
a BNC connector at the camera end for connecting an external
trigger. This cable is 9 feet (2.75 m) long, and is constructed with
105 Ωdifferential, 28 AWG wire, aluminum polyester foil cover,
and tinned copper-braid shielding.
Other manuals for DT3157
1
Table of contents
Other Data Translation Media Converter manuals

Data Translation
Data Translation DT3120 Parts list manual

Data Translation
Data Translation MACH Series Parts list manual

Data Translation
Data Translation DT3152 Parts list manual

Data Translation
Data Translation DT3130 Series Parts list manual

Data Translation
Data Translation DT3153 Parts list manual

Data Translation
Data Translation DT3162 User manual

Data Translation
Data Translation MACH Series User manual

Data Translation
Data Translation DT3157 Parts list manual

Data Translation
Data Translation DT3130 Series User manual

Data Translation
Data Translation DT3152-LS Parts list manual