Worldwide Technical Support and Product Information
ni.com
Worldwide Offices
Visit
ni.com/niglobal to access the branch office Web sites, which provide up-to-date
contact information, support phone numbers, email addresses, and current events.
National Instruments Corporate Headquarters
11500 North Mopac Expressway Austin, Texas 78759-3504 USA Tel: 512 683 0100
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.
NI 17xx Smart Cameras are 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.
XCEPTASSPECIFIEDHEREIN, NATIONAL INSTRUMENTSMAKESNOWARRANTIES, EXPRESSORIMPLIED, ANDSPECIFICALLYDISCLAIMSANY
E
WARRANTYOFMERCHANTABILITYORFITNESSFORAPARTICULARPURPOSE. CUSTOMER’SRIGHTTORECOVERDAMAGESCAUSEDBYFAULT
ORNEGLIGENCEONTHEPARTOF NATIONAL INSTRUMENTSSHALLBELIMITEDTOTHEAMOUNTTHERETOFOREPAIDBYTHECUSTOMER.
ORCONSEQUENTIALDAMAGES, EVENIFADVISEDOFTHEPOSSIBILITYTHEREOF. 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.
End-User License Agreements and Third-Party Legal Notices
You can find end-user license agreements (EULAs) and third-party legal notices in the following locations:
•Notices are located in the
directories.
•EULAs are located in the
•Review
<National Instruments>\_Legal Information.txt for more information on including legal
information in installers built with NI products.
Trademarks
Refer to the NI Trademarks and Logo Guidelines at ni.com/trademarks for more information on National Instruments
trademarks.
ARM, Keil, and µVision are trademarks or registered of ARM Ltd or its subsidiaries.
and FOUNDATION™ are trademarks of the Fieldbus Foundation.
Handle Graphics®, MATLAB®, Real-Time Workshop®, Simulink®, Stateflow®, and xPC TargetBox® are registered
trademarks, and TargetBox
Tektronix
The Bluetooth
The ExpressCard
®
, Tek, and Tektronix, Enabling Technology are registered trademarks of Tektronix, Inc.
®
word mark is a registered trademark owned by the Bluetooth SIG, Inc.
™
word mark and logos are owned by PCMCIA and any use of such marks by National Instruments is under
™
and Target Language Compiler™ are trademarks of The MathWorks, Inc.
license.
The mark LabWindows is used under a license from Microsoft Corporation. Windows is a registered trademark of Microsoft
Corporation in the United States and other countries.
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/technology, refer to the appropriate location: Help»Patents in your
software, the patents.txt file on your media, or the National Instruments Patent Notice at ni.com/patents.
Export Compliance Information
Refer to the Export Compliance Information at ni.com/legal/export-compliance for the National Instruments
global trade compliance policy and how to obtain relevant HTS codes, ECCNs, and other import/export data.
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.
Compliance
Electromagnetic Compatibility Information
This hardware has been tested and found to comply with the applicable regulatory requirements and limits
for electromagnetic compatibility (EMC) as indicated in the hardware’s Declaration of Conformity (DoC)
These requirements and limits are designed to provide reasonable protection against harmful interference
when the hardware is operated in the intended electromagnetic environment. In special cases, for example
when either highly sensitive or noisy hardware is being used in close proximity, additional mitigation
measures may have to be employed to minimize the potential for electromagnetic interference.
While this hardware is compliant with the applicable regulatory EMC requirements, there is no guarantee
that interference will not occur in a particular installation. To minimize the potential for the hardware to
cause interference to radio and television reception or to experience unacceptable performance degradation,
install and use this hardware in strict accordance with the instructions in the hardware documentation and
the DoC
If this hardware does cause interference with licensed radio communications services or other nearby
electronics, which can be determined by turning the hardware off and on, you are encouraged to try to correct
the interference by one or more of the following measures:
•Reorient the antenna of the receiver (the device suffering interference).
•Relocate the transmitter (the device generating interference) with respect to the receiver.
•Plug the transmitter into a different outlet so that the transmitter and the receiver are on different branch
Some hardware may require the use of a metal, shielded enclosure (windowless version) to meet the EMC
requirements for special EMC environments such as, for marine use or in heavy industrial areas. Refer to
the hardware’s user documentation and the DoC
When the hardware is connected to a test object or to test leads, the system may become more sensitive to
disturbances or may cause interference in the local electromagnetic environment.
Operation of this hardware in a residential area is likely to cause harmful interference. Users are required to
correct the interference at their own expense or cease operation of the hardware.
Changes or modifications not expressly approved by National Instruments could void the user’s right to
operate the hardware under the local regulatory rules.
1
.
circuits.
1
for product installation requirements.
1
.
1
The Declaration of Conformity (DoC) contains important EMC compliance information and instructions
for the user or installer. To obtain the DoC for this product, visit
model number or product line, and click the appropriate link in the Certification column.
ni.com/certification, search by
Contents
About This Manual
Related Documentation .................................................................................................... xi
Hardware Documents ............................................................................................... xi
NI Vision Builder for Automated Inspection Documents ........................................ xi
LabVIEW and NI Vision Development Module Documents................................... xii
NI Vision Acquisition Software Documents ............................................................ xii
This manual describes the electrical and mechanical aspects of the National Instruments 17xx
Smart Camera. Refer to Getting Started with the NI 17xx Smart Camera for smart camera and
accessory installation information.
Related Documentation
The following documents contain information that you may find helpful as you read this manual:
Hardware Documents
•Getting Started with the NI 17xx Smart Camera—Contains important safety information
and information about installing and configuring NI Smart Cameras and accessories. You
can access this manual by navigating to Start»All Programs»National Instruments»Vision»Documentation»NI-IMAQ.
•NI Developer Zone—Contains example programs, tutorials, technical presentations, the
Instrument Driver Network, a measurement glossary, an online magazine, a product
advisor, and a community area where you can share ideas, questions, and source code with
developers around the world. The NI Developer Zone is located on the National
Instruments Web site at
NI Developer Zone:
ni.com/zone. You can find the following documents in the
–Using the NI 17xx Smart Camera Direct Drive Lighting Controller—Demonstrates
how to utilize the Direct Drive lighting controller feature on the NI 17xx Smart
Camera with LabVIEW or Vision Builder for Automated Inspection.
–A Practical Guide to Machine Vision Lighting—Explains machine vision lighting
concepts and theories.
NI Vision Builder for Automated Inspection Documents
•NI Vision Builder for Automated Inspection Tutorial—Describes Vision Builder for
Automated Inspection and provides step-by-step instructions for solving common visual
inspection tasks, such as inspection, gauging, part presence, guidance, and counting.
•NI Vision Builder for Automated Inspection: Configuration Help—Contains information
about using the Vision Builder for Automated Inspection Configuration Interface to create
a machine vision application.
•NI Vision Builder for Automated Inspection: Inspection Help—Contains information about
running applications created with Vision Builder for Automated Inspection in the Vision
Builder Automated Inspection Interface.
LabVIEW and NI Vision Development Module
Documents
•LabVIEW Help—Includes information about LabVIEW programming concepts,
step-by-step instructions for using LabVIEW, and reference information about LabVIEW
VIs, functions, palettes, menus, and tools.
•Getting Started with LabVIEW—Use this manual as a tutorial to familiarize yourself with
the LabVIEW graphical programming environment and the basic LabVIEW features you
use to build data acquisition and instrument control applications.
•Getting Started with the LabVIEW Real-Time Module—Use this manual as a tutorial to
familiarize yourself with the LabVIEW Real-Time Module and the basic Real-Time
Module features you use to build real-time applications.
•NI Vision Concepts Manual—Describes the basic concepts of image analysis, image
processing, and machine vision. This document also contains in-depth discussions about
imaging functions for advanced users.
•NI Vision for LabVIEW Help—Describes how to create machine vision and image
processing applications in LabVIEW using the Vision Development Module. The help file
guides you through tasks beginning with setting up your imaging system to taking
measurements. It also describes how to create a real-time vision application using NI Vision
with the LabVIEW Real-Time Module and contains reference information about NI Vision
for LabVIEW palettes and VIs.
NI Vision Acquisition Software Documents
•NI-IMAQ VI Reference Help—Contains reference information about the LabVIEW VIs
and properties for NI-IMAQ driver software.
•Measurement & Automation Explorer Help for NI-IMAQ—Describes how to configure
NI-IMAQ driver software, NI image acquisition devices, and NI Smart Cameras using
Measurement & Automation Explorer.
xii | ni.com
1
NI Smart Camera Overview
This chapter provides an overview of the features and components of the National Instruments
Smart Camera. Refer to Getting Started with the NI 17xx Smart Camera for smart camera and
accessory installation information.
Hardware Overview
The NI Smart Camera is available in several different configurations. When a feature pertains
only to specific smart camera models, a list at the beginning of the section shows which smart
camera models support the feature.
All smart camera models incorporate an image sensor, processor, and digital I/O in a compact,
rugged housing.
Table 1-1 shows the differentiating features for each smart camera model.
Table 1-1. NI Smart Camera Models
NI Smart
Camera
ModelProcessorImage Sensor
NI 1722400 MHz PowerPC1/3 inch Sony ICX424AL
CCD Monochrome
640 × 480 pixels (VGA)
NI 1742533 MHz PowerPC1/3 inch Sony ICX424AL
CCD Monochrome
640 × 480 pixels (VGA)
NI 1744533 MHz PowerPC1/2 inch Sony ICX205AL
CCD Monochrome
1,280 × 1,024 pixels (SXGA)
NI 1762533 MHz PowerPC
and 720 MHz DSP
NI 1764533 MHz PowerPC
and 720 MHz DSP
1/3 inch Sony ICX424AL
CCD Monochrome
640 × 480 pixels (VGA)
1/2 inch Sony ICX205AL
CCD Monochrome
1,280 × 1,024 pixels (SXGA)
For more information about the image sensors, refer to Chapter 3, NI Smart Camera Image
Sensor. For complete smart camera specifications, refer to Appendix A, Specifications.
All smart cameras have an RS-232 serial port, Gigabit Ethernet ports, and use a standard
C-mount lens. Some smart camera models also include the Direct Drive lighting controller and
support for quadrature encoders. The Direct Drive lighting controller is an integrated controller
to directly power a variety of third-party current-controlled lights. Refer to Chapter 4, Lighting,
for more information about the Direct Drive lighting controller. The smart camera also has
one 5 V TTL strobe output and one unregulated 24 V strobe output for lighting control.
The smart camera also includes LEDs for communicating system status, four DIP switches to
specify startup options, isolated inputs, and isolated outputs for connecting to external devices.
Refer to Chapter 6, LEDs and DIP Switches, for more information about the LEDs and DIP
switches. Refer to Chapter 2, Power and I/O, for more information about the digital I/O
capabilities of the smart camera.
Figure 1-1 shows the smart camera.
Figure 1-1. NI Smart Camera
4
1
2
-
+
3
GND
5V
24V
NI 17XX SMART CAMERA
5
6
7
1Image Sensor
2Standard C Lens Mount
3Lighting Connector
4LEDs
Developing applications with the NI Smart Camera requires one of the following software
options:
The installation and configuration process for each development environment is different. Refer
to Getting Started with the NI 17xx Smart Camera for installation and configuration instructions.
The following sections describe the software options. For detailed information about individual
software packages, refer to the documentation specific to the package.
NoteVision Builder for Automated Inspection and NI Vision Acquisition Software
are included with the smart camera. LabVIEW, the LabVIEW Real-Time Module,
and the NI Vision Development Module are sold separately.
NI Vision Builder for Automated Inspection
Vision Builder for Automated Inspection (Vision Builder AI) is configurable machine vision
software you can use to configure the NI Smart Camera and prototype, benchmark, and deploy
machine vision applications.
Creating applications in Vision Builder AI does not require programming. 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 can also migrate your configured inspection to LabVIEW, extending the capabilities
of your applications if necessary.
LabVIEW
LabVIEW is a graphical programming environment for developing flexible and scalable
applications. To develop machine vision applications with the NI Smart Camera and LabVIEW,
you must have the following add-on modules: LabVIEW Real-Time Module, NI Vision
Development Module, and Vision Acquisition Software.
The LabVIEW Real-Time Module combines LabVIEW graphical programming with the power
of Real-Time (RT) hardware, enabling you to build deterministic, real-time systems. You
develop VIs in LabVIEW and embed the VIs on RT targets, such as the NI Smart Camera. The
RT target runs VIs without a user interface and offers a stable platform for real-time VIs. For
more information about the LabVIEW Real-Time Module, refer to the LabVIEW Help.
NI Vision Development Module
The NI Vision Development Module is an image acquisition, processing, and analysis library of
hundreds of functions for the following common machine vision tasks:
•Pattern matching
•Particle analysis
•Gauging
•Taking measurements
•Grayscale, color, and binary image display
With the NI Vision Development Module you can acquire, display, and store images as well as
perform image analysis and processing. Using the NI Vision Development Module, imaging
novices and experts can program the most basic or complicated image applications without
knowledge of particular algorithm implementations.
For information about how to use the NI Vision Development Module with the
LabVIEW Real-Time Module, refer to the NI Vision for LabVIEW Help.
NI Vision Acquisition Software
The NI Vision Acquisition Software CD contains Measurement & Automation Explorer (MAX)
configuration software and NI-IMAQ driver software.
Use MAX to configure the NI Smart Camera. You can set the IP address, update software on the
smart camera, configure triggering, and set up the lighting features. For more information about
MAX, refer to the Measurement & Automation Explorer Help for NI-IMAQ
NI-IMAQ is the interface path between the application software and the smart camera.
NI-IMAQ also controls the I/O and image acquisition on the smart camera.
NI-IMAQ includes an extensive library of VIs you can call from LabVIEW. These VIs include
routines for video configuration, continuous and single-shot image acquisition, and trigger
control.
The NI-IMAQ driver software performs all functions necessary for acquiring and saving images
but does not perform image analysis. NI-IMAQ features both high-level and low-level functions.
A function that acquires images in single-shot or continuous mode is an example of a high-level
function. A function that requires advanced understanding of image acquisition, such as
configuring an image sequence, is an example of a low-level function.
For information about using NI-IMAQ to configure an acquisition, refer to the NI-IMAQ VI Reference Help.
1-4 | ni.com
2
Power and I/O
This chapter provides information about the NI Smart Camera POWER-I/O connector,
connecting isolated inputs and isolated outputs, and connecting to serial devices and to
quadrature encoders.
POWER-I/O Connector
The POWER-I/O connector provides signal connections for power and I/O, including isolated
inputs and outputs, quadrature encoders, and serial devices. The POWER-I/O connector is a
standard female high-density 15-pin D-SUB connector. Table 2-1 shows the pin organization for
the POWER-I/O connector. The two pins used to connect to a power supply, pin 15 and pin 5,
are also shown in the table. Refer to Getting Started with the NI 17xx Smart Camera for
information about connecting a power supply to the NI Smart Camera.
Table 2-1 lists the signal names and pin numbers for the 15-pin POWER-I/O connector. The
table also lists the wire colors for the 15-pin D-SUB pigtail cable (part number 197818-05), sold
separately by National Instruments. Cables sold by other manufacturers could have different
wire colors.
Table 2-1. POWER-I/O Connector Signal Descriptions
Table 2-1. POWER-I/O Connector Signal Descriptions (Continued)
Connector DiagramSignal NamePin NumberWire Color
TrigIn-
12Light Green
IsoIn(0)IsoIn(1)-
IsoOut(0)+6Yel l ow
IsoOut(0)-1Green
11
6
15 (COM)
10
IsoOut(1)+11Light Blue
IsoOut(1)-7Gray
1
5 (+24 V)
PhaseA+3Blue
PhaseA-13Brown/White
PhaseB+9Purple
PhaseB-4White
NI Smart Camera Power Requirements
CautionUse the NI Smart Camera only with a 24 VDC, UL listed, limited power
source (LPS) supply. The power supply should bear the UL listed mark, LPS. The
power supply must meet any safety and compliance requirements for the country
of use.
The smart camera uses a nominal 24 VDC power source. The smart camera accepts power within
the range of the industry standard IEC 1311 input power specification (24 V +20%/-15% with
an additional allowance for an AC peak of +5%). Refer to Appendix A, Specifications, for
complete power requirement specifications.
CautionThe 24 V external lighting strobe is an unregulated output dependent on
the range of the power supply provided to the smart camera. If the power provided to
the smart camera is +20%/-15% with +5% AC ripple, the external lighting strobe
output could be as high as 30 V. If the provided power exceeds the input voltage
specifications of the third-party lighting controller, do not connect the 24 V lighting
strobe output to the controller to prevent damage to the controller. Use a power
supply with tolerances that meet the requirements of the controller, or use the 5 V
external lighting strobe.
2-2 | ni.com
NI 17xx Smart Camera User Manual
Sensor
Power
Sensor
Common
PNP (Sourcing)
Output Device
NI 17xx
TrigIn+
IsoIn(0)+
IsoIn(1)+
TrigIn–
IsoIn(0)–
IsoIn(1)–
If you are using the Direct Drive lighting controller, the power supply wattage must be sufficient
to power both the camera and the light. The power required by the light can be significantly more
than the power required by the smart camera.
NoteThe NI Smart Camera will revert to the default timestamp if power is
interrupted and the device is not connected to a network. Ensure your power supply
is not interrupted, or the device is connected to a networked or local SMTP server, to
maintain accurate timestamps.
Isolated Inputs
CautionDo not apply a voltage greater than 30 VDC to the isolated inputs.
Voltages greater than 30 VDC may damage the NI Smart Camera.
CautionThe isolated inputs and outputs on the smart camera provide an easy
means for preventing ground loops that could degrade signal integrity. The isolation
on the smart camera is not safety isolation.
You can wire an isolated input to both sourcing and sinking output devices. Refer to Figures 2-1
and 2-2 for wiring examples by output type. Refer to Appendix A, Specifications, for current
requirements.
Isolated inputs are not compatible with 5 V logic.
Figure 2-1. Connecting External Sourcing Output Sensors to Isolated Inputs
Figure 2-2. Connecting External Sinking Output Sensors to Isolated Inputs
Isolated Outputs
CautionDo not power the load connected to the isolated outputs with any external
power supply greater than 30 VDC. Voltages greater than 30 VDC may damage the
NI Smart Camera.
CautionThe isolated inputs and outputs on the smart camera provide an easy
means for preventing ground loops that could degrade signal integrity. The isolation
on the smart camera is not safety isolation.
The isolated outputs can be used to drive external loads, as shown in Figures 2-3 and 2-4.
Figure 2-3. Connecting an Isolated Output to a Sourcing External Load
2-4 | ni.com
Figure 2-4. Connecting an Isolated Output to a Sinking External Load
IsoOut+
IsoOut–
NI 17xx
Sensor
Power
Sensor
Common
Sinking
Load
Protecting Against Inductive Loads
NI 17xx Smart Camera User Manual
When an inductive load, such as a relay or solenoid, is connected to an output, a large
counter-electromotive force may occur at switching time due to energy stored in the inductive
load. This flyback voltage can damage the outputs and the power supply.
To limit flyback voltages at the inductive load, install a flyback diode across the load. Mount the
flyback diode as close to the load as possible. Use this protection method if you connect any of
the isolated outputs to an inductive load.
Connecting to Serial Devices
Use the RS232_RXD and RS232_TXD signals on the POWER-I/O connector for serial
communication. Connect the RS232_RXD signal on the NI Smart Camera to the Tx signal on
your serial device. Connect the RS232_TXD signal on the smart camera to the Rx signal on your
serial device. Connect COM on the smart camera to the ground of your serial device.
When the CONSOLE DIP switch is in the OFF position, you can use the NI-Serial driver for
serial communication. You must install the NI-Serial software on the smart camera; it is not
installed by default. Refer to the Serial Hardware and Software Help for information about
installing the NI-Serial software on LabVIEW Real-Time targets, such as the smart camera. To
open this document, navigate to Start»All Programs» National Instruments»NI-Serial»NI-Serial Help.
When the CONSOLE DIP switch is in the ON position, you can read device information from
the NI Smart Camera during startup, such as the IP address and firmware version, through a
serial port terminal program. Ensure that the serial port terminal program is configured to the
following settings:
•9,600 bits per second
•Eight data bits
•No parity
•One stop bit
•No flow control
Connecting to a Quadrature Encoder
This section applies only to the following NI Smart Cameras:
•NI 1742
•NI 1744
•NI 1762
•NI 1764
Connect RS-422 compatible differential quadrature encoders to the NI 17xx Smart Camera to
provide positional information. A quadrature encoder uses two output channels, Phase A and
Phase B, to track the position of a rotary shaft. Generally, the shaft is coupled to a motor drive
that controls the movement of an object. By providing Phase A and Phase B signals to the smart
camera, you can obtain a precise measurement of the object position. Using a quadrature encoder
gives you the ability to specify your trigger delay in terms of positional units—such as inches or
centimeters, after applying the resolution information of your encoder—rather than time.
National Instruments does not recommend the use of single-ended encoders with the smart
camera. This configuration would require the ground for a single-ended encoder to be connected
to the COM pin of the smart camera, and the PhaseA- and PhaseB- signals would be left
unconnected. In this configuration, the system is susceptible to significant noise that would be
eliminated by using a differential encoder.
Shielded encoder cables are recommended for all applications. Unshielded cables are more
susceptible to noise and can corrupt the encoder signals.
Refer to the External Trigger section of Chapter 5, Image Acquisition, for information about
using a quadrature encoder to delay a trigger.
2-6 | ni.com
NI 17xx Smart Camera User Manual
Phase A+
Phase A–
Phase A–
Phase A
Phase B+
Phase B–
Phase B–
Phase B
EncoderNI 17xx
Tw isted
Pair
Tw isted
Pair
+
–
Phase A–
Phase A+
+
–
Phase B–
Phase B+
+3.3 V
10 kΩ10 kΩ10 kΩ10 kΩ
7.5 kΩ7.5 kΩ7.5 kΩ7.5 kΩ
NI 17xx
Figure 2-5 shows an example of connecting the quadrature encoder differential line drivers.
Figure 2-5. Connecting Differential Line Drivers
Figure 2-6 shows the internal quadrature encoder/RS-422 input circuit.
Figure 2-6. NI Smart Camera Quadrature Encoder Input Circuit
This chapter provides an overview of the NI Smart Camera image sensors, field of view, spectral
response, partial scan mode, binning, gain, and hardware binarization. NI 1722/1742/1762
Smart Cameras use a VGA sensor. NI 1744/1764 Smart Cameras use an SXGA sensor. Refer to
Appendix A, Specifications, for information about your smart camera image sensor.
Field of View
The field of view is the area under inspection that will be imaged by the NI Smart Camera. It is
critical to ensure that the field of view of your system includes the object you want to inspect.
To calculate the horizontal and vertical field of view (FOV) of your imaging system, use
Equation 3-1 and the specifications for the image sensor of your smart camera, as listed in
Appendix A, Specifications.
whereFOV is the field of view in either the horizontal or vertical direction,
Pixel Pitch measures the distance between the centers of adjacent pixels in either the
horizontal or vertical direction,
Active Pixels is the number of pixels in either the horizontal or vertical direction,
Working Distance is the distance from the front element (external glass) of the lens to
the object under inspection, and
Focal Length measures how strongly a lens converges (focuses) or diverges (diffuses)
light.
Figure 3-1 illustrates horizontal field of view and working distance.
Figure 3-1. Parameters of an Imaging System
1
2
3
1Horizontal Imaging Width2Working Distance3Horizontal Field of View
For example, if the working distance of your imaging setup is 100 mm, and the focal length of
the lens is 8 mm, then the field of view in the horizontal direction of a smart camera using the
VGA sensor in full scan mode is
(3-2)
Similarly, the field of view in the vertical direction is
(3-3)
Based on the result of Equations 3-2 and/or 3-3, you can see that you might need to adjust the
various parameters in the FOV equation until you achieve the right combination of components
that match your inspection needs. This might include increasing your working distance,
choosing a lens with a shorter focal length, or changing to a high resolution camera.
3-2 | ni.com
NI 17xx Smart Camera User Manual
abc
Image Sensor Spectral Response
The spectral response curve describes the relative sensitivity of the sensor to different
wavelengths of light. The peak responsiveness of the VGA and SXGA sensors is to light with a
wavelength of approximately 500 nm. If you are imaging a dim scene, this information can be
useful when selecting a light source to use in your application as the camera is most sensitive at
its peak responsiveness. It also helps determine what, if any, filters your application might
require to remove undesired wavelengths of light from the scene.
Refer to Appendix A, Specifications, to find the normalized spectral response curves for the
VGA and SXGA sensors.
Partial Scan Mode
Partial scan mode is a method of obtaining higher frame rates by reading out only a portion of
the image from the sensor. Partial scan is frequently used when an application requires higher
speed but less resolution than the sensor offers in full scan mode. The NI Smart Camera supports
1/2 scan and 1/4 scan. In 1/2 scan, shown in Figure 3-2b, one half of the image is read out from
the center of the sensor and the rest of the image is discarded to enable a faster start of the next
frame. In 1/4 scan, only one quarter of the image is read out. Figure 3-2 illustrates the portion of
the sensor exposed during partial scanning.