NI PCIe-1427 User manual

Artisan Technology Group is your source for quality
new and certied-used/pre-owned equipment
• FAST SHIPPING AND
DELIVERY
• TENS OF THOUSANDS OF
IN-STOCK ITEMS
• EQUIPMENT DEMOS
• HUNDREDS OF
MANUFACTURERS
SUPPORTED
• LEASING/MONTHLY
RENTALS
• ITAR CERTIFIED
SECURE ASSET SOLUTIONS
SERVICE CENTER REPAIRS
Experienced engineers and technicians on staff
at our full-service, in-house repair center
WE BUY USED EQUIPMENT
Sell your excess, underutilized, and idle used equipment
We also offer credit for buy-backs and trade-ins
www.artisantg.com/WeBuyEquipment
REMOTE INSPECTION
Remotely inspect equipment before purchasing with
our interactive website at www.instraview.com
LOOKING FOR MORE INFORMATION?
Visit us on the web at www.artisantg.com for more
information on price quotations, drivers, technical
specications, manuals, and documentation
Contact us: (888) 88-SOURCE | sales@artisantg.com | www.artisantg.com
SM
View
Instra

NI Vision
NI PCIe-1427 User Manual
Base Configuration Camera Link Image Acquisition Device
NI PCIe-1427 User Manual
September 2006
371816A-01
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Support
Worldwide Technical Support and Product Information
ni.com
National Instruments Corporate Headquarters
11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100
Worldwide Offices
Australia 1800 300 800, Austria 43 0 662 45 79 90 0, Belgium 32 0 2 757 00 20, Brazil 55 11 3262 3599,
Canada 800 433 3488, China 86 21 6555 7838, Czech Republic 420 224 235 774, Denmark 45 45 76 26 00,
Finland 385 0 9 725 725 11, France 33 0 1 48 14 24 24, Germany 49 0 89 741 31 30, India 91 80 41190000,
Israel 972 0 3 6393737, Italy 39 02 413091, Japan 81 3 5472 2970, Korea 82 02 3451 3400,
Lebanon 961 0 1 33 28 28, Malaysia 1800 887710, Mexico 01 800 010 0793, Netherlands 31 0 348 433 466,
New Zealand 0800 553 322, Norway 47 0 66 90 76 60, Poland 48 22 3390150, Portugal 351 210 311 210,
Russia 7 095 783 68 51, Singapore 1800 226 5886, Slovenia 386 3 425 4200, South Africa 27 0 11 805 8197,
Spain 34 91 640 0085, Sweden 46 0 8 587 895 00, Switzerland 41 56 200 51 51, Taiwan 886 02 2377 2222,
Thailand 662 278 6777, United Kingdom 44 0 1635 523545
For further support information, refer to the Technical Support and Professional Services appendix. To comment
on National Instruments documentation, refer to the National Instruments Web site at ni.com/info and enter
the info code feedback.
©2006 National Instruments Corporation. All rights reserved.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Important Information
Warranty
The NI PCIe-1427 is warranted against defects in materials and workmanship for a period of one year from the date of shipment, as evidenced
by receipts or other documentation. National Instruments will, at its option, repair or replace equipment that proves to be defective during the
warranty period. This warranty includes parts and labor.
The media on which you receive National Instruments software are warranted not to fail to execute programming instructions, due to defects in
materials and workmanship, for a period of 90 days from date of shipment, as evidenced by receipts or other documentation. National Instruments
will, at its option, repair or replace software media that do not execute programming instructions if National Instruments receives notice of such defects
during the warranty period. National Instruments does not warrant that the operation of the software shall be uninterrupted or error free.
A Return Material Authorization (RMA) number must be obtained from the factory and clearly marked on the outside of the package before any
equipment will be accepted for warranty work. National Instruments will pay the shipping costs of returning to the owner parts which are covered by
warranty.
National Instruments believes that the information in this document is accurate. The document has been carefully reviewed for technical accuracy. In
the event that technical or typographical errors exist, National Instruments reserves the right to make changes to subsequent editions of this document
without prior notice to holders of this edition. The reader should consult National Instruments if errors are suspected. In no event shall National
Instruments be liable for any damages arising out of or related to this document or the information contained in it.
EXCEPT AS SPECIFIED HEREIN, NATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF
MERCHANTABILITY OR FITNESS FOR APARTICULAR PURPOSE. CUSTOMER’SRIGHT TO RECOVER DAMAGES CAUSED BY FAULT OR NEGLIGENCE ON THE PART OF NATIONAL
INSTRUMENTS SHALL BE LIMITED TO THE AMOUNT THERETOFORE PAID BY THE CUSTOMER. NATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING
FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL OR CONSEQUENTIAL DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. This limitation of
the liability of National Instruments will apply regardless of the form of action, whether in contract or tort, including negligence. Any action against
National Instruments must be brought within one year after the cause of action accrues. National Instruments shall not be liable for any delay in
performance due to causes beyond its reasonable control. The warranty provided herein does not cover damages, defects, malfunctions, or service
failures caused by owner’s failure to follow the National Instruments installation, operation, or maintenance instructions; owner’s modification of the
product; owner’s abuse, misuse, or negligent acts; and power failure or surges, fire, flood, accident, actions of third parties, or other events outside
reasonable control.
Copyright
Under the copyright laws, this publication may not be reproduced or transmitted in any form, electronic or mechanical, including photocopying,
recording, storing in an information retrieval system, or translating, in whole or in part, without the prior written consent of National
Instruments Corporation.
National Instruments respects the intellectual property of others, and we ask our users to do the same. NI software is protected by copyright and other
intellectual property laws. Where NI software may be used to reproduce software or other materials belonging to others, you may use NI software only
to reproduce materials that you may reproduce in accordance with the terms of any applicable license or other legal restriction.
Trademarks
National Instruments, NI, ni.com, and LabVIEW are trademarks of National Instruments Corporation. Refer to the Terms of Use section
on ni.com/legal for more information about National Instruments trademarks.
Other product and company names mentioned herein are trademarks or trade names of their respective companies.
Members of the National Instruments Alliance Partner Program are business entities independent from National Instruments and have no agency,
partnership, or joint-venture relationship with National Instruments.
Patents
For patents covering National Instruments products, refer to the appropriate location: Help»Patents in your software, the patents.txt file
on your CD, or ni.com/patents.
WARNING REGARDING USE OF NATIONAL INSTRUMENTS PRODUCTS
(1) NATIONAL INSTRUMENTS PRODUCTS ARE NOT DESIGNED WITH COMPONENTS AND TESTING FOR A LEVEL OF
RELIABILITY SUITABLE FOR USE IN OR IN CONNECTION WITH SURGICAL IMPLANTS OR AS CRITICAL COMPONENTS IN
ANY LIFE SUPPORT SYSTEMS WHOSE FAILURE TO PERFORM CAN REASONABLY BE EXPECTED TO CAUSE SIGNIFICANT
INJURY TO A HUMAN.
(2) IN ANY APPLICATION, INCLUDING THE ABOVE, RELIABILITY OF OPERATION OF THE SOFTWARE PRODUCTS CAN BE
IMPAIRED BY ADVERSE FACTORS, INCLUDING BUT NOT LIMITED TO FLUCTUATIONS IN ELECTRICAL POWER SUPPLY,
COMPUTER HARDWARE MALFUNCTIONS, COMPUTER OPERATING SYSTEM SOFTWARE FITNESS, FITNESS OF COMPILERS
AND DEVELOPMENT SOFTWARE USED TO DEVELOP AN APPLICATION, INSTALLATION ERRORS, SOFTWARE AND HARDWARE
COMPATIBILITY PROBLEMS, MALFUNCTIONS OR FAILURES OF ELECTRONIC MONITORING OR CONTROL DEVICES,
TRANSIENT FAILURES OF ELECTRONIC SYSTEMS (HARDWARE AND/OR SOFTWARE), UNANTICIPATED USES OR MISUSES, OR
ERRORS ON THE PART OF THE USER OR APPLICATIONS DESIGNER (ADVERSE FACTORS SUCH AS THESE ARE HEREAFTER
COLLECTIVELY TERMED “SYSTEM FAILURES”). ANY APPLICATION WHERE A SYSTEM FAILURE WOULD CREATE A RISK OF
HARM TO PROPERTY OR PERSONS (INCLUDING THE RISK OF BODILY INJURY AND DEATH) SHOULD NOT BE RELIANT SOLELY
UPON ONE FORM OF ELECTRONIC SYSTEM DUE TO THE RISK OF SYSTEM FAILURE. TO AVOID DAMAGE, INJURY, OR DEATH,
THE USER OR APPLICATION DESIGNER MUST TAKE REASONABLY PRUDENT STEPS TO PROTECT AGAINST SYSTEM FAILURES,
INCLUDING BUT NOT LIMITED TO BACK-UP OR SHUT DOWN MECHANISMS. BECAUSE EACH END-USER SYSTEM IS
CUSTOMIZED AND DIFFERS FROM NATIONAL INSTRUMENTS' TESTING PLATFORMS AND BECAUSE A USER OR APPLICATION
DESIGNER MAY USE NATIONAL INSTRUMENTS PRODUCTS IN COMBINATION WITH OTHER PRODUCTS IN A MANNER NOT
EVALUATED OR CONTEMPLATED BY NATIONAL INSTRUMENTS, THE USER OR APPLICATION DESIGNER IS ULTIMATELY
RESPONSIBLE FOR VERIFYING AND VALIDATING THE SUITABILITY OF NATIONAL INSTRUMENTS PRODUCTS WHENEVER
NATIONAL INSTRUMENTS PRODUCTS ARE INCORPORATED IN A SYSTEM OR APPLICATION, INCLUDING, WITHOUT
LIMITATION, THE APPROPRIATE DESIGN, PROCESS AND SAFETY LEVEL OF SUCH SYSTEM OR APPLICATION.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Compliance
Compliance with FCC/Canada Radio Frequency Interference
Regulations
Determining FCC Class
The Federal Communications Commission (FCC) has rules to protect wireless communications from interference. The FCC
places digital electronics into two classes. These classes are known as Class A (for use in industrial-commercial locations only)
or Class B (for use in residential or commercial locations). All National Instruments (NI) products are FCC Class A products.
Depending on where it is operated, this Class A product could be subject to restrictions in the FCC rules. (In Canada, the
Department of Communications (DOC), of Industry Canada, regulates wireless interference in much the same way.) Digital
electronics emit weak signals during normal operation that can affect radio, television, or other wireless products.
All Class A products display a simple warning statement of one paragraph in length regarding interference and undesired
operation. The FCC rules have restrictions regarding the locations where FCC Class A products can be operated.
Consult the FCC Web site at www.fcc.gov for more information.
FCC/DOC Warnings
This equipment generates and uses radio frequency energy and, if not installed and used in strict accordance with the instructions
in this manual and the CE marking Declaration of Conformity*, may cause interference to radio and television reception.
Classification requirements are the same for the Federal Communications Commission (FCC) and the Canadian Department
of Communications (DOC).
Changes or modifications not expressly approved by NI could void the user’s authority to operate the equipment under the
FCC Rules.
Class A
Federal Communications Commission
This equipment has been tested and found to comply 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 is required to correct the interference
at their own expense.
Canadian Department of Communications
This Class A digital apparatus meets all requirements of the Canadian Interference-Causing Equipment Regulations.
Cet appareil numérique de la classe A respecte toutes les exigences du Règlement sur le matériel brouilleur du Canada.
Compliance with EU Directives
Users in the European Union (EU) should refer to the Declaration of Conformity (DoC) for information* pertaining to the
CE marking. Refer to the Declaration of Conformity (DoC) for this product for any additional regulatory compliance
information. To obtain the DoC for this product, visit ni.com/certification, search by model number or product line,
and click the appropriate link in the Certification column.
* The CE marking Declaration of Conformity contains important supplementary information and instructions for the user or
installer.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Conventions
The following conventions are used in this manual:
<> Angle brackets that contain numbers separated by an ellipsis represent
a range of values associated with a bit or signal name—for example,
AO <3..0>.
This icon denotes a note, which alerts you to important information.
This icon denotes a caution, which advises you of precautions to take to
avoid injury, data loss, or a system crash.
bold Bold text denotes items that you must select or click in the software, such
as menu items and dialog box options.
italic Italic text denotes variables, emphasis, a cross-reference, or an introduction
to a key concept. Italic text also denotes text that is a placeholder for a word
or value that you must supply.
monospace Text in this font denotes text or characters that you should enter from the
keyboard, sections of code, programming examples, and syntax examples.
This font is also used for the proper names of disk drives, paths, directories,
programs, subprograms, subroutines, device names, functions, operations,
variables, filenames, and extensions.
NI 1427 NI 1427 refers to the NI PCIe-1427 image acquisition device.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

©National Instruments Corporation vii NI PCIe-1427 User Manual
Contents
Chapter 1
Introduction
About the NI 1427 .........................................................................................................1-1
Camera Link ..................................................................................................................1-2
Overview .........................................................................................................1-2
Software Overview ........................................................................................................1-3
NI-IMAQ Driver Software ..............................................................................1-3
National Instruments Application Software ....................................................1-4
Vision Builder for Automated Inspection.........................................1-4
Vision Development Module ............................................................1-4
Integration with DAQ and Motion Control .....................................................1-5
Chapter 2
Hardware Overview
Functional Overview......................................................................................................2-1
Camera Link and the NI 1427 .........................................................................2-2
Base Configuration ...........................................................................2-2
Data Transmission ...........................................................................................2-2
Hardware Binarization.....................................................................................2-3
Multiple-Tap Data Formatter ..........................................................................2-4
Trigger Control and Mapping Circuitry ..........................................................2-4
Wiring an Isolated Input to Output Devices....................................................2-5
Connecting to a Quadrature Encoder ..............................................................2-6
High-Speed Timing .........................................................................................2-8
Acquisition and Region of Interest (ROI) .......................................................2-9
Acquisition Window Control ..........................................................................2-9
DMA Controllers.............................................................................................2-9
PCIe Interface..................................................................................................2-9
Start Conditions ...............................................................................................2-10
Serial Interface.................................................................................................2-10
Chapter 3
Signal Connections
Connectors .....................................................................................................................3-1
MDR 26-Pin Connector...................................................................................3-2
15-pin D-SUB Connector ................................................................................3-3
Using the NI 1427 with the NI Camera Link I/O Extension Board ................3-4
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Contents
NI PCIe-1427 User Manual viii ni.com
Appendix A
Cabling
Appendix B
Technical Support and Professional Services
Glossary
Index
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

©National Instruments Corporation 1-1 NI PCIe-1427 User Manual
1
Introduction
This chapter provides an overview of the NI PCIe-1427 (NI 1427) image
acquisition device, the Camera Link standard, and software choices for
programming the NI 1427.
About the NI 1427
The NI 1427 is a highly flexible image acquisition device that supports
Base configuration Camera Link-compatible cameras. The NI 1427
acquires digital images in real time and transfers them directly to system
memory. Featuring a high-speed data path, the NI 1427 is ideal for both
industrial and scientific environments.
The NI 1427 is easy to install and configure. The NI 1427 ships with
NI Vision Acquisition Software, which includes NI-IMAQ, the National
Instruments driver software. NI-IMAQ is used to directly control the
NI 1427 and other National Instruments image acquisition devices. With
NI-IMAQ, you can quickly and easily start your applications without
having to program the device at the register level. Refer to Getting Started
with the NI PCIe-1427 for information about installing the NI 1427.
Camera files configure the NI 1427 with information about the output
format of your camera. Camera files validated by National Instruments are
installed with the NI-IMAQ driver software. Additional camera files are
available for download from the National Instruments Industrial Camera
Advisor at ni.com/camera.
The MDR 26-pin connector on the NI 1427 provides connection to Camera
Link-compatible cameras. For further configuration information, refer to
the Camera Link and the NI 1427 section of Chapter 2, Hardware
Overview.
The 15-pin D-SUB connector has four external TTL input/output (I/O)
lines you can use as triggers or as high-speed digital I/O lines. Should you
choose not to use the TTL I/O lines, the 15-pin D-SUB connector also
provides access to two optically isolated inputs and two RS-422 inputs.The
RS-422 inputs can be used as either single-ended or differential lines, or
together as a quadrature encoder input. Additional I/O lines for advanced
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Chapter 1 Introduction
NI PCIe-1427 User Manual 1-2 ni.com
triggering, pulse-train outputs, and isolated digital I/O are available with
the NI Camera Link I/O Extension Board. Refer to the NI Camera Link I/O
Extension Board User Guide for information about the NI Camera Link I/O
Extension Board.
For more advanced digital or analog system triggering or digital I/O lines,
you can use the NI 1427 and NI-IMAQ with National Instruments Data
Acquisition (DAQ) or Motion Control products.
Synchronizing several functions to a common trigger or timing event can
be a challenge with image acquisition devices. The NI 1427 uses the
Real-Time System Integration (RTSI) bus to synchronize multiple devices,
such as data acquisition and motion control devices. The RTSI bus uses the
National Instrument RTSI bus interface and ribbon cable to route additional
timing and trigger signals between the NI 1427 and up to four National
Instruments Vision, DAQ, or Motion Control devices. The RTSI bus can
also synchronize multiple image acquisition devices to perform
simultaneous captures.
Refer to the Specifications section of Getting Started with the
NI PCIe-1427 for detailed specifications of the NI 1427.
Camera Link
This section provides a brief overview of the Camera Link standard. Refer
to the Specifications of the Camera Link Interface Standard for Digital
Cameras and Frame Grabbers manual for more detailed information about
Camera Link specifications. This manual is available on several Web sites,
including the Automated Imaging Association site at
www.machinevisiononline.org.
Overview
Developed by a consortium of camera and image acquisition device
manufacturers, Camera Link is a standard for interfacing digital cameras
with image acquisition devices. Camera Link simplifies connectivity
between the image acquisition device and the camera by defining a single
standard connector for both. This standard ensures physical compatibility
of devices bearing the Camera Link logo.
The basis for the Camera Link standard is the National Semiconductor
Channel Link chipset, a data transmission method consisting of a
general-purpose transmitter/receiver pair. The Channel Link driver takes
28 bits of parallel digital data and a clock and serializes the stream to
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Chapter 1 Introduction
©National Instruments Corporation 1-3 NI PCIe-1427 User Manual
four LVDS (EIA-644) data streams and an LVDS clock, providing
high-speed data transmission across 10 wires and over distances of up
to 10 m.
Software Overview
Programming the NI 1427 requires the NI-IMAQ driver software for
controlling the hardware. National Instruments also offers the following
application software packages for analyzing and processing your acquired
images.
•NI Vision Builder for Automated Inspection—Allows you to
configure solutions to common inspection tasks.
•NI Vision Development Module—Provides customized control over
hardware and algorithms.
The following sections provide an overview of the driver and application
software. For detailed information about individual software packages,
refer to the documentation specific to each software package.
NI-IMAQ Driver Software
The NI 1427 ships with NI Vision Acquisition Software, which includes
the NI-IMAQ driver software. NI-IMAQ has an extensive library of
functions—such as routines for video configuration, continuous and single
shot image acquisition, memory buffer allocation, trigger control, and
device configuration—you can call from the application development
environment (ADE). NI-IMAQ handles many of the complex issues
between the computer and the image acquisition device, such as
programming interrupts and camera control.
NI-IMAQ performs all functions required for acquiring and saving images
but does not perform image analysis. Refer to the National Instruments
Application Software section for image analysis functionality.
NI-IMAQ also provides the interface between the NI 1427 and LabVIEW,
LabWindows™/CVI™, or a text-based programming environment. The
NI-IMAQ software kit includes a series of libraries for image acquisition
for LabVIEW, LabWindows/CVI, and Measurement Studio, which
contains libraries for Microsoft Visual Basic.
NI-IMAQ features both high-level and low-level functions. Examples
of high-level functions include the sequences to acquire images in
multi-buffer, single-shot, or continuous mode. An example of a low-level
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Chapter 1 Introduction
NI PCIe-1427 User Manual 1-4 ni.com
function is configuring an image sequence, since it requires advanced
understanding of image acquisition.
National Instruments Application Software
This section describes the National Instruments application software
packages you can use to analyze and process the images you acquire with
the NI 1427.
Vision Builder for Automated Inspection
NI Vision Builder for Automated Inspection (Vision Builder AI) is
configurable machine vision software that you can use to prototype,
benchmark, and deploy applications. Vision Builder AI does not require
programming, but is scalable to powerful programming environments.
Vision Builder AI allows you to easily configure and benchmark a
sequence of visual inspection steps, as well as deploy the visual inspection
system for automated inspection. With Vision Builder AI, you can perform
powerful visual inspection tasks and make decisions based on the results
of individual tasks. You also can migrate the configured inspection to
LabVIEW, extending the capabilities of the applications if necessary.
Vision Development Module
NI Vision Development Module, which consists of NI Vision and
NI Vision Assistant, is an image acquisition, processing, and analysis
library of more than 270 functions for the following common machine
vision tasks:
• Pattern matching
• Particle analysis
•Gauging
• Taking measurements
• Grayscale, color, and binary image display
You can use the Vision Development Module functions individually or
in combination. With the Vision Development Module, you can acquire,
display, and store images, as well as perform image analysis and
processing. Using the Vision Development Module, imaging novices and
experts can program the most basic or complicated image applications
without knowledge of particular algorithm implementations.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Chapter 1 Introduction
©National Instruments Corporation 1-5 NI PCIe-1427 User Manual
As a part of the Vision Development Module, NI Vision Assistant is an
interactive prototyping tool for machine vision and scientific imaging
developers. With Vision Assistant, you can prototype vision applications
quickly and test how various image processing functions work.
Vision Assistant generates a Builder file, which is a text description
containing a recipe of the machine vision and image processing functions.
This Builder file provides a guide you can use for developing applications
in any ADE, such as LabWindows/CVI or Visual Basic, using the Vision
Assistant machine vision and image processing libraries. Using the
LabVIEW VI creation wizard, Vision Assistant can create LabVIEW VI
diagrams that perform the prototype you created in Vision Assistant.
You can then use LabVIEW to add functionality to the generated VI.
Integration with DAQ and Motion Control
Platforms that support NI-IMAQ also support NI-DAQ and a variety of
National Instruments data acquisition (DAQ) devices. This allows for
integration between image acquisition and DAQ devices.
Use National Instruments high-performance stepper and servo motion
control products with pattern matching software in inspection and guidance
applications, such as locating alignment markers on semiconductor wafers,
guiding robotic arms, inspecting the quality of manufactured parts, and
locating cells.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

©National Instruments Corporation 2-1 NI PCIe-1427 User Manual
2
Hardware Overview
This chapter provides an overview of NI 1427 hardware functionality and
explains the operations of the functional units on the device.
Functional Overview
The NI 1427 features a flexible, high-speed data path optimized for
receiving and formatting video data from Camera Link cameras.
Figure 2-1 illustrates the key functional components of the NI 1427.
Figure 2-1. NI 1427 Block Diagram
MDR 26-Pin Connector15-Pin DSUB Connector
UART
TTL I/O
Pixel Clock
Enables
Data
Camera Control Advanced
Timing
Isolated
Inputs
Host
Interface and
Scatter-Gather
DMA
Controllers
34-Pin
RTSI Connector
50-Pin
NI Camera Link
I/O Extension
Board Connector
PCI Express Bus
Multiple Tap
Data
Formatter and
Region of
Interest
Acquisition
Control
and
Triggering
Serial Transmit
Serial Receive
Quadrature Encoder/
RS-422 Inputs
Base
Configuration
Receiver
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Chapter 2 Hardware Overview
NI PCIe-1427 User Manual 2-2 ni.com
Camera Link and the NI 1427
The NI 1427 supports the Camera Link Base configuration.
Base Configuration
The Camera Link Base configuration places 24 data bits and four enable
signals (Frame Valid, Line Valid, Data Valid, and a spare) on a single
Channel Link part and cable.
The Base configuration includes asynchronous serial transmission as well
as four digital camera control lines for controlling exposure time, frame
rates, and other camera control signals. These four control lines are
configured in the camera file to generate precise timing signals for
controlling digital camera acquisition.
Base configuration includes the following bit allocations:
•8-bit×1, 2, and 3 taps (channels)
• 10-bit ×1 and 2 taps
• 12-bit ×1 and 2 taps
• 14-bit ×1 tap
• 16-bit ×1 tap
• 24-bit RGB
Data Transmission
A 28-to-4 serializing Channel Link chip drives the data and camera enable
signals across the Camera Link cable, and the pixel clock on the camera
controls the Channel Link chip data transmission. The four LVDS pairs are
then deserialized by another Channel Link chip on the NI 1427.
Note Exact timing of camera and image acquisition device communication is camera
dependent. Refer to the Specifications of the Camera Link Interface Standard for Digital
Cameras and Frame Grabbers manual for more information about Camera Link timing
requirements.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Chapter 2 Hardware Overview
©National Instruments Corporation 2-3 NI PCIe-1427 User Manual
Hardware Binarization
The NI 1427 supports binarization and inverse binarization. Binarization
and inverse binarization segment an image into two regions: a particle
region and a background region. Use binarization and inverse binarization
to isolate objects of interest in an image.
To separate objects under consideration from the background, select a pixel
value range. This pixel value range is known as the gray-level interval, or
the threshold interval. Binarization works by setting all image pixels that
fall within the threshold interval to the image white value and setting all
other image pixels to 0. Pixels inside the threshold interval are considered
part of the particle region. Pixels outside the threshold interval are
considered part of the background region.
Inverse binarization flips the assigned bit numbers of the particle region and
the background region. Thus, all pixels that belong in the threshold interval,
or the particle region, are set to 0, while all pixels outside the threshold
interval, or the background region, are set to the image white value.
Figure 2-2 illustrates binarization and inverse binarization.
Figure 2-2. Binarization and Inverse Binarization
NORMAL
Stored Value
Sampled Data
INVERSE
Stored Value
Sampled Data
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Chapter 2 Hardware Overview
NI PCIe-1427 User Manual 2-4 ni.com
Multiple-Tap Data Formatter
Many digital cameras transfer multiple taps, or pixels, of data
simultaneously to increase the frame rate of the camera. However, the data
in each tap may not be transferred in the traditional top-left to bottom-right
direction. Also, the taps may not transfer data in the same direction.
The multiple-tap data formatting circuitry on the NI 1427 can reorder the
data from multiple taps. The data from each tap can be independently
scanned either from left-to-right or right-to-left and top-to-bottom or
bottom-to-top.
Note For your convenience, data reformatting instructions for these cameras have been
preprogrammed into the camera files.
Trigger Control and Mapping Circuitry
The trigger control and mapping circuitry routes, monitors, and drives the
external and RTSI bus trigger lines. You can configure each trigger line to
start an acquisition on a rising edge or a falling edge. You also can drive
each line asserted or unasserted as a digital I/O line. You can map pulses
from the high-speed timing circuitry or the NI 1427 status signals to these
trigger lines. Seven RTSI bus triggers and four external triggers—all of
which are programmable for polarity and direction—are available for
simultaneous use. Additional I/O is available with the NI Camera Link I/O
Extension Board. Refer to the Using the NI 1427 with the NI Camera Link
I/O Extension Board section of Chapter 3, Signal Connections, for
information about the I/O functionality of the NI 1427 when used with the
NI Camera Link I/O Extension Board.
Individually configure the four external triggers in MAX as single-ended
I/O lines or, alternatively, as isolated or RS-422 input only lines. You can
configure the four external triggers in any combination of single-ended I/O
or input only lines. Table 2-1 lists the configuration options available for
each trigger source.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Chapter 2 Hardware Overview
©National Instruments Corporation 2-5 NI PCIe-1427 User Manual
Note If not configured as single-ended I/O lines, triggers have input only capability.
Wiring an Isolated Input to Output Devices
You can wire an isolated input to both sourcing and sinking output devices.
Refer to Figures 2-3 and 2-4 for wiring examples by output type. Refer to
Getting Started with the NI PCIe-1427 for information about switching
thresholds and current requirements.
Caution Do not apply a voltage greater than 30 VDC to the isolated inputs. Voltage greater
than 30 VDC may damage the NI 1427.
Note Isolated inputs are compatible with 5 V logic if the external circuit meets the voltage
and current requirements listed in Getting Started with the NI PCIe-1427.
Table 2-1. Trigger Configuration Options for the NI 1427
Trigger Number
Single-ended
Input/Output
Alternative
Input Only
0TTL_TRIG(0) ISO_IN(0)
1TTL_TRIG(1) ISO_IN(1)
2TTL_TRIG(2) RS422_IN(0)
3TTL_TRIG(3) RS422_IN(1)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Chapter 2 Hardware Overview
NI PCIe-1427 User Manual 2-6 ni.com
Figure 2-3. Example of Connecting an Isolated Input to a Sourcing Output Device
Figure 2-4. Example of Connecting an Isolated Input to a Sinking Output Device
Connecting to a Quadrature Encoder
The NI 1427 accepts single-ended or differential (RS-422) line driver
inputs. Shielded encoder cables are recommended for all applications.
Unshielded cables are more susceptible to noise and can corrupt the
encoder signals. Figure 2-5 shows the quadrature encoder/RS-422 inputs
circuit.
Vcc
Sensor
Power
IN+Current
Limiter
NI 1427
IN–
PNP (Sourcing)
Output Device
Sensor
Common
Vcc
Sensor
Power
IN+Current
Limiter
NI 1427
IN–
NPN (Sinking)
Output Device
Sensor
Common
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Chapter 2 Hardware Overview
©National Instruments Corporation 2-7 NI PCIe-1427 User Manual
Figure 2-5. NI 1427 Quadrature Encoder/RS-422 Inputs Circuit
Figure 2-6 shows an example of connecting differential line drivers.
Figure 2-6. Example of Connecting Differential Line Drivers
+
–
Phase A–
Phase A+
+
–
Phase B–
Phase B+
+3.3 V
26LV32
26LV32
10 kΩ 10 kΩ 10 kΩ 10 kΩ
7.5 kΩ 7.5 kΩ 7.5 kΩ 7.5 kΩ
Phase A+
Phase A–
Phase A
Phase A
Twisted
Pair
Phase B+
Phase B–
Phase B
Phase B
Twisted
Pair
Encoder NI 1427
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Other manuals for PCIe-1427
1
Table of contents