Resumen del contenido incluido en la página 1
NI Vision
NI PCI-8254R User Manual
1394a Image Acquisition Device with Reconfigurable I/O
NI PCI-8254R User Manual
September 2006
371578C-01
Resumen del contenido incluido en la página 2
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
Resumen del contenido incluido en la página 3
Important Information Warranty The NI PCI-8254R 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
Resumen del contenido incluido en la página 4
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
Resumen del contenido incluido en la página 5
Conventions The following conventions are used in this manual: » The » symbol leads you through nested menu items and dialog box options to a final action. The sequence File»Page Setup»Options directs you to pull down the File menu, select the Page Setup item, and select Options from the last dialog box. 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
Resumen del contenido incluido en la página 6
Contents Chapter 1 Introduction Software Overview ........................................................................................................1-1 Vision Builder for Automated Inspection .......................................................1-2 Vision Development Module ..........................................................................1-2 IEEE 1394 and NI 8254R ..............................................................................................1-3 Functional Overvi
Resumen del contenido incluido en la página 7
Contents Chapter 3 Signal Connections Connectors..................................................................................................................... 3-2 2-Position Isolated Outputs Power Connector ................................................ 3-2 IEEE 1394a Connector.................................................................................... 3-3 General-Purpose Digital I/O ........................................................................... 3-3 Cabling ........
Resumen del contenido incluido en la página 8
1 Introduction The National Instruments PCI-8254R is an IEEE 1394a interface device for PCI with reconfigurable I/O (RIO). The NI 8254R is OHCI compliant and should be used with IEEE 1394a devices that run natively in Windows 2000/XP. The NI 8254R device ships with documentation and NI Vision Acquisition Software, which contains all of the drivers in the NI Vision product line. With NI Vision Acquisition Software, you can quickly and easily start your applications without having to program
Resumen del contenido incluido en la página 9
Chapter 1 Introduction National Instruments also offers the following application software packages for analyzing and processing your acquired images. For detailed information about individual software packages, refer to the documentation specific to each package. 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 do
Resumen del contenido incluido en la página 10
Chapter 1 Introduction 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 cre
Resumen del contenido incluido en la página 11
Chapter 1 Introduction ISO In V2 FPGA TTL In DSUB PCI PCI Dust CPLD TTL Out CONN Bridge MITE ISO Out Config ROM ISO Power Connection 1394 1394A Conns Controller Power Supply +5 V, +1.5 V 1394 Power Conn Figure 1-1. NI 8254R Block Diagram Start Conditions The NI 8254R can start acquisitions in the following ways: � Software control—The NI 8254R supports software control of acquisition start. You can configure the NI 8254R to capture a fixed number of frames. Use this configuration for capturi
Resumen del contenido incluido en la página 12
2 Digital I/O The digital I/O functions on the NI 8254R are accessible through 2 TTL inputs, 10 TTL outputs, 13 isolated inputs, and 4 isolated outputs. You can use input signals as triggers, product selection ports, change detectors, or to read quadrature encoders. Uses for output signals include controlling camera reset and exposure, controlling strobe lighting, outputting inspection results, or communicating with PLCs. You can also define the functions of digital input and output signals
Resumen del contenido incluido en la página 13
Chapter 2 Digital I/O NI-IMAQ I/O devices such as the such as the NI 8254R, the NI 8255R, and the CVS-1450 Series Compact Vision Systems have 29 digital I/O lines with built-in functionality for communicating with external devices, such as reading quadrature encoder inputs, generating strobe pulses, and writing to or reading from digital lines. NI-IMAQ I/O devices have 15 digital input lines—13 isolated 24 V lines and two dedicated TTL lines. There are 14 digital output lines—four isolated
Resumen del contenido incluido en la página 14
Chapter 2 Digital I/O Table 2-1. NI 8254R TTL Inputs and Outputs (Continued) 44-Pin D-SUB on 37-Pin Input NI 8255R Terminal Primary or Number Device Pin Block Function Output Available Signal Names Number Number Watchdog Output 1 TTL Output 0 3 4 General Output 3 TTL Output 5 19 21 Purpose TTL Output 6 21 23 TTL Output 7 22 24 * TTL Input 0 and TTL Input 1 can also function as trigger change detectors. Isolated Inputs and Outputs The isolated inputs and outputs on the NI 8254R have a separa
Resumen del contenido incluido en la página 15
Chapter 2 Digital I/O Table 2-2 summarizes the isolated inputs and outputs available on the NI 8254R. Table 2-2. NI 8254R Isolated Inputs and Outputs 44-Pin D-SUB on 37-Pin NI 8255R Terminal Primary Input or Number Signal Device Pin Block Function Output Available Names Number Number * Trigger Input 3 TRIG 0 11 — † ISO Input 5 35 15 * ISO Input 8 40 27 Quadrature Input 1 ISO Input 6 37 25 Encoder ISO Input 7 38 26 External Input 1 ISO Input 11 44 31 Shutdown Control Product Input 1 ISO In
Resumen del contenido incluido en la página 16
Chapter 2 Digital I/O Trigger Inputs Trigger inputs are available from both TTL inputs and isolated inputs. You can use these trigger inputs to synchronize the NI 8254R with an external event, such as the assertion of a signal generated by a proximity sensor or a PLC, to indicate that an inspection item is passing in front of the camera. The NI 8254R uses this input to initiate a timed pulse that can be used for camera control, lighting control, encoder pulse counting, and result output ti
Resumen del contenido incluido en la página 17
Chapter 2 Digital I/O When the pulse generator is configured for a particular trigger input, after generating a pulse, it waits for another trigger before generating another pulse. When the pulse generator is configured to immediately generate the pulse on a software start, after generating a pulse, it immediately generates another pulse. If the trigger input is set to Immediate in LabVIEW or using a None status signal in C and Visual Basic, the pulse generation occurs as soon as the pulse
Resumen del contenido incluido en la página 18
Chapter 2 Digital I/O Pulse Width Pulse width is the amount of time between the first (assertion) edge of a pulse and the second (deassertion) edge. Pulse width is configurable only in microseconds from 1 µs to 4,294,967,295 µs. Trigger Polarity Each pulse generator can be individually configured for rising or falling edge triggering. Even if multiple pulse generators are using the same trigger, each can have different polarities. The following figure shows the output of a pulse generator co
Resumen del contenido incluido en la página 19
Chapter 2 Digital I/O Trigger Change Detectors The NI 8254R is capable of detecting edges on various trigger lines and latching this information for future retrieval. This feature is useful for high-precision hardware-monitoring of the presence of external events without the need for software polling. You can arm for the detection of a rising edge, falling edge, or both on a supported trigger input line. Supported trigger input lines include TTL Input 0, TTL Input 1, ISO Input 8, ISO Input
Resumen del contenido incluido en la página 20
Chapter 2 Digital I/O example, an upstream NI 8254R device programmed for part classification might drive the product selection port of a downstream NI 8254R device. Alternatively, a PLC with information about which part is being inspected can drive the product selection port of the NI 8254R. Using ISO Input 5 as a Latch You can configure the product selection port to use ISO Input 5 as a latch. A rising edge on ISO Input 5 can latch the data into a data register on the NI 8254R. Before eac