National Instruments NI 1712, NI 1732, NI 1752, NI 1754 User Manual

NI Vision
NI 17xx Smart Camera User Manual
For NI 1712/1732/1752/1754 Smart Cameras
NI 17xx User Manual
February 2013 372429C-01
Support
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.
© 2008-2013 National Instruments. All rights reserved.
Important Information
Warranty
The NI 17xx 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.
XCEPT AS SPECIFIED HEREIN, NATIONAL INSTRUMENTS MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AND SPECIFICALLY DISCLAIMS ANY
E
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. CUSTOMERS RIGHT 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.
ATIONAL INSTRUMENTS WILL NOT BE LIABLE FOR DAMAGES RESULTING FROM LOSS OF DATA, PROFITS, USE OF PRODUCTS, OR INCIDENTAL
N
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.
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 in installers built with NI products.
<National Instruments>\_Legal Information.txt for more information on including legal information
Trademarks
LabVIEW, National Instruments, NI, ni.com, the National Instruments corporate logo, and the Eagle logo are trademarks of National Instruments Corporation. Refer to the Trademark Information at 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/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.
<National Instruments>\_Legal Information and <National Instruments>
<National Instruments>\Shared\MDF\Legal\license directory.
ni.com/trademarks for other National
(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
Conventions ...................................................................................................................... xi
Related Documentation .................................................................................................... xi
Hardware Documents ............................................................................................... xi
NI Vision Builder for Automated Inspection Documents ........................................ xii
LabVIEW and NI Vision Development Module Documents................................... xii
NI Vision Acquisition Software Documents ............................................................ xiii
PART I
Getting Started with the NI 17xx Smart Camera
Chapter 1 Hardware Overview and Installation
Hardware Overview.......................................................................................................... 1-1
Connect the Power Supply ............................................................................................... 1-2
NI Desktop Power Supply ........................................................................................ 1-3
Third-Party Power Supply ........................................................................................ 1-3
Power Requirements................................................................................................. 1-5
Connect to the Development Computer ........................................................................... 1-5
Direct Connection..................................................................................................... 1-5
Network Connection................................................................................................. 1-6
Subnet Considerations ...................................................................................... 1-6
IP Address Assignment .................................................................................... 1-6
DHCP IP Addresses.................................................................................. 1-6
Firewall Configuration ............................................................................................. 1-7
Chapter 2 Software Overview
Configuring the NI Smart Camera with Vision Builder AI.............................................. 2-2
Configure the IP Address ......................................................................................... 2-2
Install Software on the NI Smart Camera................................................................. 2-3
Acquire an Image with Vision Builder AI................................................................ 2-3
Configuring the NI Smart Camera with LabVIEW.......................................................... 2-4
Configure the IP Address ......................................................................................... 2-5
Install Software on the NI Smart Camera................................................................. 2-6
Acquire an Image...................................................................................................... 2-6
© National Instruments | vii
Contents
PART II
NI 17xx Smart Camera Technical Reference
Chapter 3 Connectors
POWER-I/O Connector ....................................................................................................3-2
NI Smart Camera Power Requirements............................................................................ 3-3
Lighting Connector ........................................................................................................... 3-3
Ethernet Ports....................................................................................................................3-4
Ethernet LEDs........................................................................................................... 3-4
ACTIVITY/LINK LED .................................................................................... 3-5
SPEED LED ..................................................................................................... 3-5
Chapter 4 Connecting Lighting and External Devices
Direct Drive Lighting Controller ......................................................................................4-1
Lighting Files ............................................................................................................ 4-3
Selecting a Light ....................................................................................................... 4-4
Connecting a Light to the Direct Drive Lighting Controller .................................... 4-5
External Lighting Controllers ...........................................................................................4-5
Connecting an External Lighting Controller to the NI Smart Camera ..................... 4-7
Isolated Inputs................................................................................................................... 4-7
Isolated Outputs ................................................................................................................4-8
Protecting Against Inductive Loads..........................................................................4-9
Connecting to Serial Devices............................................................................................4-10
Communicating with the Console............................................................................. 4-10
Connecting to a Quadrature Encoder ................................................................................ 4-10
Chapter 5 Image Sensor
Field of View ....................................................................................................................5-1
Image Sensor Spectral Response ......................................................................................5-2
Partial Scan Mode .............................................................................................................5-3
Binning.............................................................................................................................. 5-3
Gain................................................................................................................................... 5-4
Hardware Binarization ...................................................................................................... 5-4
Maintenance......................................................................................................................5-5
viii | ni.com
NI 17xx User Manual
Chapter 6 Image Acquisition
Exposure ........................................................................................................................... 6-1
Acquiring Images ............................................................................................................. 6-2
Internal Timing ......................................................................................................... 6-2
External Trigger........................................................................................................ 6-2
Maximum Frame Rate ...................................................................................................... 6-5
Determining the Maximum Frame Rate ................................................................... 6-5
Determining the Scan Mode ..................................................................................... 6-6
Determining the Exposure Time............................................................................... 6-6
Determining the Trigger Delay................................................................................. 6-6
Calculating the Minimum Frame Period .................................................................. 6-6
Chapter 7 LED Indicators and DIP Switches
Understanding the LED Indicators ................................................................................... 7-1
Device Initialization ................................................................................................. 7-2
POWER LED ........................................................................................................... 7-2
STATUS LED .......................................................................................................... 7-2
IMG ACQ LED ........................................................................................................ 7-4
PASS LED................................................................................................................ 7-4
FAIL LED................................................................................................................. 7-4
Configuring DIP Switches................................................................................................ 7-4
SAFE MODE Switch................................................................................................ 7-4
IP RESET Switch ..................................................................................................... 7-5
NO APP Switch ........................................................................................................ 7-5
CONSOLE Switch.................................................................................................... 7-6
Chapter 8 Thermal Considerations and Mounting
Thermal Considerations.................................................................................................... 8-1
Mounting the NI Smart Camera ....................................................................................... 8-2
Appendix A Specifications
Power Requirements................................................................................................. A-1
Memory .................................................................................................................... A-1
Processor................................................................................................................... A-1
VGA Sensor (NI 1712/1732/1752 Only).................................................................. A-1
SXGA Sensor (NI 1754 Only).................................................................................. A-2
Lighting .................................................................................................................... A-3
Network .................................................................................................................... A-4
Serial ......................................................................................................................... A-5
© National Instruments | ix
Contents
Optically Isolated Inputs and Outputs ...................................................................... A-5
Isolated Inputs................................................................................................... A-5
Isolated Outputs ................................................................................................ A-5
Quadrature Encoder (NI 1732/1752/1754 Only) ...................................................... A-5
Physical Characteristics ............................................................................................ A-5
Environmental...........................................................................................................A-6
Safety ........................................................................................................................ A-6
Electromagnetic Compatibility ................................................................................. A-6
CE Compliance .........................................................................................................A-7
Appendix B Troubleshooting
Configuration Problems .................................................................................................... B-1
The NI Smart Camera Does Not Appear in MAX or Vision Builder AI ................. B-1
The NI Smart Camera Restarts Unexpectedly .......................................................... B-2
Run-Time Problems .......................................................................................................... B-3
The NI Smart Camera is Unresponsive and Blinks the IMG ACQ and FAIL LEDsB-3
Lighting Problems............................................................................................................. B-3
The Light Does Not Illuminate When Using the Direct Drive Controller ............... B-3
There is No External Lighting Strobe .......................................................................B-5
MAX ................................................................................................................. B-5
Vision Builder AI.............................................................................................. B-5
Triggering Problems .........................................................................................................B-5
No Trigger is Received ............................................................................................. B-5
LED Error Indications ...................................................................................................... B-6
STATUS LED Error Conditions............................................................................... B-6
POWER LED is Not Lit When the NI Smart Camera is Powered On ..................... B-6
Appendix C Technical Support and Professional Services
Glossary
Index
x | ni.com
About This Manual
This manual is divided into two parts. Part I contains instructions for installing software and configuring your device. Part II contains detailed electrical and mechanical information for the National Instruments 17xx Smart Camera.
Conventions
The following conventions appear in this manual:
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.
When this symbol is marked on a product, it denotes a warning advising you to take precautions to avoid electrical shock.
bold Bold text denotes items that you must select or click in the software,
such as menu items and dialog box options. Bold text also denotes parameter names.
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.
monospace italic
Italic text in this font denotes text that is a placeholder for a word or value that you must supply.
Related Documentation
The following documents contain information that you may find helpful as you read this manual:
Hardware Documents
NI 17xx Series Smart Camera: Using the NI Smart Camera with LabVIEW—Contains basic installation and configuration instructions for using the NI Smart Camera with LabVIEW.
NI 17xx Series Smart Camera: Using the NI Smart Camera with Vision Builder AI—Contains basic installation and configuration instructions for using the NI Smart Camera with Vision Builder AI.
© National Instruments | xi
About This Manual
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.com/zone.
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 Help—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.
xii | ni.com
NI 17xx User Manual
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.
© National Instruments | xiii
Part I
Getting Started with the NI 17xx Smart Camera
This section provides the following information:
Basic information about the NI 17xx Smart Camera hardware
Instructions for configuring the NI 17xx Smart Camera hardware
Basic information about software options for application development
Instructions for acquiring your first image with the NI 17xx Smart Camera using the selected application development software
© National Instruments | I-1
1
Hardware Overview and Installation
This chapter provides an overview of the features and components of the NI 17xx Smart Camera. Figure 1-1 shows the NI 17xx Smart Camera.
Figure 1-1. NI 17xx Smart Camera
4
1
2
-
+
3
1 Image Sensor 2 Standard C Lens Mount 3 Lighting Connector 4 LED Indicators
GND
5V
24V
NI 17XX SMART CAMERA
5
5 DIP Switches 6 POWER-I/O Connector 7 Ethernet Ports (Single Port on NI 1712)
6
7
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.
© National Instruments | 1-1
Chapter 1 Hardware Overview and Installation
Table 1-1 shows the differentiating features for each smart camera model.
Table 1-1. NI Smart Camera Models
Processor Image Sensor
400 MHz PowerPC
NI 1712
400 MHz PowerPC
NI 1732
600 MHz PowerPC
NI 1752
600 MHz PowerPC
NI 1754
1/3 inch Sony ICX424AL CCD Monochrome 640 × 480 pixels (VGA)
1/3 inch Sony ICX424AL CCD Monochrome 640 × 480 pixels (VGA)
1/3 inch Sony ICX424AL CCD Monochrome 640 × 480 pixels (VGA)
1/2 inch Sony ICX205AL CCD Monochrome 1,280 × 1,024 pixels (SXGA)
Direct Drive
Lighting
Strobe
No No No
Ye s No Ye s
Ye s Ye s Ye s
Ye s Ye s Ye s
Lighting
Controller
Quadrature
Encoder
Support
For more information about the image sensors, refer to Chapter 5, Image Sensor. For complete device 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. Some smart camera models also have one 5 V TTL strobe output and one unregulated 24 V strobe output for lighting control. Refer to Chapter 4, Connecting Lighting and External Devices, for more information about strobe output and the Direct Drive lighting controller. For complete device specifications, refer to Appendix A, Specifications.
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 7, LED Indicators and DIP Switches, for more information about the LEDs and DIP switches.
Connect the Power Supply
To connect a power supply to the NI Smart Camera, complete the steps listed in one of the following sections. Refer to the NI Desktop Power Supply section to connect the NI desktop power supply directly to the smart camera with no additional I/O. Refer to the Third-Party
Power Supply section to connect a third-party power supply. If you plan to use additional pins
1-2 | ni.com
NI 17xx User Manual
2
1
on the 15-pin D-SUB connector for I/O, refer to the POWER-I/O Connector section of Chapter 3, Connectors, for information and pin descriptions.
Caution Use the smart camera only with a 24 VDC, UL listed, limited power
source (LPS) supply. The power supply will bear the UL listed mark, LPS. The power supply must also meet any safety and compliance requirements for the country of use.
NI Desktop Power Supply
Refer to Figure 1-2 while completing the following steps to connect the NI desktop power supply to the NI Smart Camera with no additional I/O.
Figure 1-2. NI 17xx Smart Camera
1 NI Smart Camera 2 Power Supply
1. Connect and secure the 15-pin D-SUB connector on the NI desktop power supply to the POWER-I/O connector on the smart camera.
2. Plug the power supply power cord into the power supply.
3. Plug the power supply into an outlet.
When power is first applied to the smart camera, the POWER LED flashes red for one second while internal systems power up. The POWER LED then lights green when power is correctly wired to the smart camera.
Third-Party Power Supply
National Instruments provides the following two cable options for connecting a third-party power supply to the NI Smart Camera.
Terminal block with a 15-pin D-SUB connector, such as the NI Smart Camera I/O Accessory, and a 15-pin D-SUB to 15-pin D-SUB cable
15-pin D-SUB pigtail cable
© National Instruments | 1-3
Chapter 1 Hardware Overview and Installation
1
2 3
4
Refer to Figure 1-3 while completing the following steps to connect a third-party power supply to the smart camera using either a terminal block or the pigtail cable.
Figure 1-3. Connecting the NI Smart Camera to a Third-Party Power Supply
1 NI Smart Camera 2 15-Pin D-SUB to 15-Pin D-SUB Cable
3 Optional Terminal Block 4 Power Supply
1. Connect and secure the 15-pin D-SUB connector on your cable to the POWER-I/O connector on the smart camera.
2. If you are using a terminal block, connect the cable to the terminal block.
3. Connect the +24 V signal from the cable or terminal block to the corresponding signal on the power supply.
Table 3-2 shows the pin locations for the POWER-I/O connector and lists the signal names and pin numbers used to supply power to the NI Smart Camera. Refer to Chapter 3, Connectors, for a complete description of pin functions for I/O. The table lists wire colors for the National Instruments 15-pin D-SUB pigtail cable. Cables from another vendor may have different wire colors.
Table 1-2. NI Smart Camera POWER-I/O Connector Signal Descriptions
Connector Diagram Signal Name Pin Number Wire Color
15 (COM)
11
COM 15 Black
6
5 (+24 V)
1
10
4. Connect the COM signal from the cable or terminal block to the corresponding signal on the power supply.
5. If necessary, connect the power cord to the power supply.
6. Plug the power supply into an outlet.
1-4 | ni.com
+24 V 5 Red
NI 17xx User Manual
To connect any additional I/O signals necessary for your application, refer to Chapter 3,
Connectors, for complete pin information.
When power is first applied to the smart camera, the POWER LED flashes red for one second while internal systems power up. The POWER LED then lights green when power is correctly wired to the smart camera.
Power Requirements
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.
Caution The 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.
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. Refer to Chapter 4, Connecting Lighting and
External Devices, for more information about using external lighting.
Connect to the Development Computer
The NI 17xx Smart Camera can connect to the development computer directly or through a network. To configure the NI 17xx Smart Camera through a network, the NI 17xx Smart Camera and the development computer must be connected to the same subnet.
Caution To prevent data loss and to maintain the integrity of your Ethernet
installation, do not use a cable longer than 100 m. National Instruments recommends using a shielded twisted pair cable for maximum signal integrity.
Direct Connection
To connect the NI 17xx Smart Camera directly to the development computer, use an Ethernet cable to connect from the Ethernet port on the development computer to Ethernet port 1 on the smart camera. For NI 1712 Smart Cameras, use the single Ethernet port.
© National Instruments | 1-5
Chapter 1 Hardware Overview and Installation
Network Connection
To connect the NI 17xx Smart Camera to the development computer through a network, complete the following steps.
1. Verify that the development computer is connected to the network and powered on.
2. Using an Ethernet cable, connect from an Ethernet hub or other network port to Ethernet port 1 on the smart camera.
The NI 17xx Smart Camera is now connected through a network and is available for additional configuration with the development computer.
Subnet Considerations
To use the NI 17xx Smart Camera on a subnet other than the one on which the development computer resides, first connect and configure the NI 17xx Smart Camera on the same subnet as the development computer. Next, physically move the NI 17xx Smart Camera. Contact your network administrator for assistance in determining which network ports reside on the same subnet.
IP Address Assignment
If the NI 17xx Smart Camera is connected directly to the development computer, the device will use a link-local IP address. If the NI 17xx Smart Camera is connected to a network that has a DHCP server, the device will automatically obtain an IP address. You can also configure the NI 17xx Smart Camera to use a static IP address. If you cannot locate the NI 17xx Smart Camera on the network, first refer to the Firewall Configuration section, then assign a static IP address or contact your network administrator.
Note If the NI 17xx Smart Camera has a link-local IP address (169.254.x.x), the
device is only accessible from the local subnet. To access the smart camera from a remote subnet, configure the smart camera to obtain an IP address from a DHCP server or manually assign a static IP address.
DHCP IP Addresses
Using a DHCP server to assign an IP address has the following advantages:
The DHCP server manages the IP addresses of the network. You do not need to know the IP address of the NI 17xx Smart Camera.
The DHCP server does not allow other devices to use the IP address that is already assigned to your NI 17xx Smart Camera.
1-6 | ni.com
NI 17xx User Manual
Although using a DHCP server simplifies IP address configuration, using a static IP address can be more reliable. Consider the following potential issues before using a DHCP server to assign an IP address to the NI 17xx Smart Camera:
If the network has both static IP addresses and IP addresses managed by a DHCP server, the DHCP server must be configured to not use reserved static IP addresses. If the DHCP server is not configured this way, the DHCP server can assign a reserved IP address to another device, causing address conflicts on the network, which results in some devices being unreachable.
When a NI 17xx Smart Camera configured for DHCP starts, it must be able to connect to the DHCP server. If the NI 17xx Smart Camera cannot connect to the DHCP server and is not connected to the same subnet as the development computer, it does not appear in MAX or Vision Builder AI.
Note TA NI 17xx Smart Camera connected directly to the development computer
or to the same subnet as the development computer is always configurable from MAX or Vision Builder AI, regardless of the IP address settings.
Firewall Configuration
If you are having difficulty detecting the NI 17xx Smart Camera on your network, you must configure the firewall to open the TCP/UDP ports used by the NI 17xx Smart Camera and the host machine. The required ports are listed in Table 1-3.
Table 1-3. TCP/UDP Ports Used by the NI 17xx Smart Camera
Port Type Details
3580 TCP/UDP Reserved as nati-svrloc (NAT-ServiceLocator). Used by
Measurement & Automation Explorer (MAX) to locate remote targets.
7749 TCP Used for remote image display (not reserved).
7750 TCP Used for NI-IMAQ remote configuration (not reserved).
3363 TCP/UDP Reserved as nati-vi-server (NATI VI Server). Used by Vision
Builder for Automated Inspection to configure a remote NI Smart Camera.
If your firewall is controlled remotely or you are unsure about configuring the firewall, contact your network administrator.
© National Instruments | 1-7
2
Vision Builder
for
Automated Inspection
LabVIEW
LabVIEW Real-Time Module
NI Vision Development Module
NI Vision Acquisition Software
or
Software Overview
National Instruments provides two options for developing applications for the NI 17xx Smart Camera.
Note Vision Builder for Automated Inspection and NI Vision Acquisition Software
are included with the NI 17xx Smart Camera. LabVIEW, the LabVIEW Real-Time Module, and the NI Vision Development Module are sold separately.
The following sections describe the installation and configuration process for each development environment:
•Refer to Configuring the NI Smart Camera with Vision Builder AI for information about using the NI 17xx Smart Camera with Vision Builder AI.
•Refer to Configuring the NI Smart Camera with LabVIEW for information about using the NI 17xx Smart Camera with LabVIEW.
The installation and configuration process for each development environment is different. Complete only the instructions for your chosen development environment.
Caution National Instruments software may require you to update the firmware for
this device. Do not remove power from the device until the software indicates that the firmware update is complete. Removing power during a firmware update could cause your device to become unusable.
© National Instruments | 2-1
Chapter 2 Software Overview
Configuring the NI Smart Camera with Vision Builder AI
Vision Builder AI is interactive, menu-driven configuration software for developing, benchmarking, and deploying machine vision applications. 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 inspection to LabVIEW to extend the capabilities of your application, if necessary. The latest version of Vision Builder AI is included with the NI 17xx Smart Camera.
Complete the following steps to install Vision Builder AI and configure the NI 17xx Smart Camera.
1. Install and activate Vision Builder AI on the development computer. Refer to the NI Vision Builder for Automated Inspection Readme for installation instructions.
2. Launch Vision Builder AI.
3. On the Vision Builder AI welcome screen, select the NI 17xx Smart Camera in the list of targets.
If the NI 17xx Smart Camera does not appear in the list of targets, verify that the device has power and is connected to an Ethernet port on the same subnet as the development computer, then click Refresh Target List. Refer to the section Understanding the LED
Indicators in Chapter 7, LED Indicators and DIP Switches, for information about LED
status messages.
4. Click Configure Target. The Remote Target Configuration Wizard launches in a new window.
5. In the Name field, enter a name for the device. Use the Description field to enter any additional information or a brief description of the device.
Device names are limited to 31 characters with no spaces or special characters, except hyphens. The first and last characters must be alphanumeric.
6. Click Next.
Configure the IP Address
Complete the following steps to configure IP address settings for the NI 17xx Smart Camera in the The Remote Target Configuration Wizard.
1. If the network is configured to issue IP addresses using DHCP, select Obtain IP address
from DHCP server. Otherwise, configure the IP address manually by selecting Edit the IP settings and clicking Suggest Values.
2. If you want to prevent other users from configuring the device, select Enable Password and click Set Password to set up password protection.
3. Click Next.
2-2 | ni.com
NI 17xx User Manual
Install Software on the NI Smart Camera
Complete the following steps to install software from the development computer to the NI 17xx Smart Camera.
1. In the Remote Target Configuration Wizard, enable the Update Target Software checkbox.
2. Click the Browse button next to the Software Image to Install on the Target control.
3. Navigate to the Vision Builder AI software image you want to use, and click OK. Software images provided by National Instruments are installed to the
RT Images
Builder AI is installed.
4. Click OK to apply the IP configuration settings and download software to the device.
5. Click OK to close the Remote Target Configuration Successful dialog box.
directory, where <Vision Builder AI> is the location where Vision
<Vision Builder AI>\
Acquire an Image with Vision Builder AI
Complete the following steps to acquire an image using Vision Builder AI.
1. On the Vision Builder AI welcome screen, select the NI 17xx Smart Camera in the list of targets.
2. Click Acquire Image (Smart Camera) Example. The image acquisition example opens in the Vision Builder AI Configuration Interface.
3. Click the Run Inspection Once button to acquire a single image.
4. In the State Configuration Window, select the Acquire Image (Smart Camera) step.
5. Click the Edit Step button. The property page for the step opens.
6. Use the controls on the Main, Trigger, Lighting, Calibration or Advanced tabs to configure additional settings for your application.
7. Click OK to save the step configuration.
The NI 17xx Smart Camera is now configured and acquiring images. Use Vision Builder AI to add and configure additional inspection steps to create your application. Refer to the Related
Documentation section in the introduction to this manual for a list of documentation and other
resources to help you set up and use the NI 17xx Smart Camera in an application.
© National Instruments | 2-3
Chapter 2 Software Overview
Configuring the NI Smart Camera with LabVIEW
LabVIEW is a graphical programming environment for developing flexible and scalable applications. The following add-on modules are required for developing machine vision applications:
LabVIEW Real-Time Module—Programming library for developing distributed, deterministic applications.
NI Vision Development Module—Programming library for developing machine vision and scientific imaging applications.
NI Vision Acquisition Software—Includes Measurement & Automation Explorer (MAX), the National Instruments configuration utility, and NI-IMAQ driver software for acquiring images and controlling I/O using the NI 17xx Smart Camera. The latest version of NI Vision Acquisition software is included with the NI 17xx Smart Camera.
Install the software in the following order:
1. LabVIEW—Refer to the LabVIEW Release Notes for installation instructions for LabVIEW and system requirements for the LabVIEW software. Refer to the LabVIEW Upgrade Notes for additional information about upgrading to the most recent version of LabVIEW.
Documentation for LabVIEW is available by selecting Start»All Programs» National Instruments»LabVIEW»LabVIEW Manuals.
2. LabVIEW Real-Time Module—Refer to the LabVIEW Real-Time Module Release and Upgrade Notes for installation instructions and information about getting started with the LabVIEW Real-Time Module.
Documentation for the LabVIEW Real-Time Module is available by selecting Start» All Programs»National Instruments»LabVIEW»LabVIEW Manuals.
3. NI-IMAQ—Refer to the NI Vision Acquisition Software Release Notes on the NI Vision Acquisition Software installation media for system requirements and installation instructions for the NI-IMAQ driver.
Documentation for the NI-IMAQ driver software is available by selecting Start» All Programs»National Instruments»Vision»Documentation»NI-IMAQ.
4. NI Vision Development Module—Refer to the NI Vision Development Module Readme on the NI Vision Development Module installation media for system requirements and installation instructions.
Documentation for the NI Vision Development Module is available by selecting Start» All Programs»National Instruments»Vision»Documentation»NI Vision.
2-4 | ni.com
NI 17xx User Manual
Configure the IP Address
Complete the following steps to configure IP address settings for the NI 17xx Smart Camera in MAX:
1. Launch MAX by double-clicking the Measurement & Automation icon on the desktop, or selecting Start»All Programs»National Instruments»Measurement & Automation Explorer.
2. Expand the Remote Systems branch of the configuration tree, and select the device you want to configure. To uniquely identify multiple unconfigured devices, connect and configure one device at a time.
If the NI 17xx Smart Camera does not appear in the list of targets, verify that the device has power and is connected to an Ethernet port on the same subnet as the development computer. Refer to Chapter 7, LED Indicators and DIP Switches for information about LED status messages.
3. In the Hostname field, enter a name for the device. Use the Comments field to enter any additional information or a brief description of the device.
4. Device names are limited to 31 characters with no spaces or special characters, except hyphens. The first and last characters must be alphanumeric.
5. Verify the IP address configuration in the Network Settings tab.
If the network is configured to issue IP addresses using DHCP, select DHCP or Link
Local.
Otherwise, select Static to configure the IP address manually.
Note If the IP address is 169.254.x.x or 0.0.0.0, the device is only accessible
from the local subnet. To access the device from a remote subnet, configure the device to obtain an IP address from a DHCP server or manually assign a static IP address.
6. If you want to prevent other users from resetting the NI 17xx Smart Camera, click the Set Permissions button on the MAX toolbar to set up password protection.
7. Click Save on the MAX toolbar.
8. When prompted, click Yes to restart the NI 17xx Smart Camera. The initialization process may take several minutes.
© National Instruments | 2-5
Chapter 2 Software Overview
Install Software on the NI Smart Camera
Complete the following steps to install software from the development computer to the NI 17xx Smart Camera.
1. In the Remote Systems branch of the MAX configuration tree, expand the folder for your device and select Software.
2. Click Add/Remove Software on the MAX toolbar to launch the LabVIEW Real-Time Software Wizard.
3. Select NI Vision RT and NI-IMAQ RT. The software wizard will automatically select any other required software.
4. Click Next.
5. Verify your software installation choices, and click Next.
6. When the installation is complete, click Finish.
Acquire an Image
Complete the following steps to acquire an image using MAX.
1. In the Remote Systems branch of the MAX configuration tree, expand the folder for your device.
2. Click cam0:NI 17xx, where 17xx is replaced by the actual model number of your NI 17xx Smart Camera.
3. Click Snap to acquire a single image, or click Grab to acquire continuous images. Click Grab again to stop a continuous acquisition.
4. Use the controls on the Sensor, Triggering, Lighting, and LUT tabs to adjust the acquisition settings.
The NI Smart Camera is now configured and acquiring images. Use LabVIEW to create your application. Refer to the Related Documentation section in the introduction to this manual for a list of documentation and other resources to help you set up and use the NI 17xx Smart Camera in an application.
2-6 | ni.com
Part II
NI 17xx Smart Camera Technical Reference
This section provides the following information:
Descriptions and pinout information for the connectors
Wiring diagrams and instructions for connecting the NI 17xx Smart Camera to external devices
Information about acquiring an image with the NI 17xx Smart Camera
Descriptions and blink code explanations for the LED indicators
Information about configuring the DIP switches on the NI 17xx Smart Camera
Information about operating temperatures of the NI 17xx Smart Camera
Information about mounting the NI 17xx Smart Camera
© National Instruments | II-1
Loading...
+ 60 hidden pages