Getting Started with the NI 1483 Camera Link NI FlexRIO Adapter Module

Publish Date: Aug 29, 2016 | 1 Ratings | 1.00 out of 5 | Print | Submit your review

Overview

The NI 1483 extends the NI FlexRIO family of products to include vision acquisition. With this Camera Link NI FlexRIO adapter module, you can perform field-programmable gate array (FPGA) processing on images acquired from Camera Link cameras. This document describes some of the functionality of the NI 1483 and the NI LabVIEW FPGA Module for image processing. The Camera Link bus, designed for relatively high-performance image acquisition, delivers the highest throughput of any camera bus. This makes Camera Link an ideal fit for FPGA image processing. You can now combine high-performance image acquisition with low-latency, high-speed, FPGA hardware processing. The NI 1483 supports 80-bit, 10-tap Base, Medium, and Full Camera Link configurations with a pixel clock frequency of up 85 MHz. You can attach it to any NI FlexRIO FPGA module.

Table of Contents

  1. Required Software and Hardware
  2. Software and Driver Installation
  3. Hardware Installation
  4. Using the NI 1483R with a LabVIEW FPGA Example VI
  5. NI 1483 Component-Level Intellectual Property (CLIP)

1. Required Software and Hardware

The following software is required for this tutorial:

–LabVIEW 2009 or later
–LabVIEW FPGA Module 2009 or later
–NI-RIO 3.4 or later driver software
–NI-IMAQ 4.4 or later driver software, which is included with NI Vision Acquisition Software
–(Optional) NI Vision Development Module 2009 or later

The following hardware is required for this tutorial:

–NI FlexRIO adapter module (NI 1483)
–NI FlexRIO FPGA module

Back to Top

2. Software and Driver Installation

Before installing the NI 1483, you must install the application software and device driver. Install the software in the following order:

1. LabVIEW — Refer to the LabVIEW Release Notes for installation instructions for LabVIEW and system requirements for LabVIEW software. Refer to the LabVIEW Upgrade Notes for additional information about upgrading to the most recent version of LabVIEW for Windows. Documentation for LabVIEW is available by selecting Start»All Programs»National Instruments»LabVIEW»LabVIEW Manuals.

2. LabVIEW FPGA Module — Refer to the LabVIEW FPGA Module Release and Upgrade Notes for installation instructions and information about getting started with the LabVIEW FPGA Module. Documentation for the LabVIEW FPGA Module is available by selecting Start»All Programs»National Instruments»LabVIEW»LabVIEW Manuals.

3. NI-RIO — Refer to the NI-RIO Readme on the NI-RIO installation media for system requirements and installation instructions for the NI-RIO driver.  Documentation for the NI-RIO driver software is available by selecting Start»All Programs»National Instruments»NI-RIO.

4. 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.

5. (Optional) 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.

Back to Top

3. Hardware Installation

This section describes how to unpack and install the NI FlexRIO FPGA module and the NI 1483.
Note: You must install the software before installing the hardware. For software installation information, refer to Step 1. Install Application Software and Driver.

Unpacking

The NI FlexRIO FPGA module and the NI 1483 are shipped in antistatic packages to prevent electrostatic discharge from damaging device components. To prevent such damage when handling the device, take the following precautions:

• Ground yourself using a grounding strap or by holding a grounded object, such as your computer chassis.

• Touch the antistatic package to a metal part of the computer chassis before removing the device from the package.
Caution: Never touch the exposed pins of connectors.

•Remove the device from the package and inspect the devices for loose components or any other sign of damage. Notify National Instruments if the device appears damaged in any way. Do not install a damaged device in the chassis. Store the NI FlexRIO FPGA module and NI 1483 in the antistatic envelopes when not in use.

Installing the NI FlexRIO FPGA Module

You must install the software before installing the hardware. For software installation information, refer to Step 1. Install Application Software and Driver.
Caution: Refer to the Read Me First: Safety and Electromagnetic Compatibility document packaged with your PXI/PXI Express chassis or device before removing equipment covers or connecting or disconnecting any signal wires.

1. Power off and unplug the PXI/PXI Express chassis. Refer to your chassis manual to install or configure the chassis.

2. Identify a supported PXI/PXI Express slot in the chassis. If you are using a PXI Express chassis, you can place PXI devices in the PXI slots. If a PXI device is hybrid-slot compatible, you can use the PXI Express hybrid slots. PXI Express devices can be placed only in PXI Express slots and PXI Express hybrid slots. Refer to the chassis documentation for details.

Tip: PXI NI FlexRIO FPGA modules are compatible with PXI slots and PXI Express hybrid slots. PXI Express NI FlexRIO FPGA modules are compatible with PXI Express slots and PXI Express hybrid slots. National Instruments does not recommend using NI FlexRIO FPGA modules in PXI Express system timing slots because the modules do not have timing features.

3. Remove the filler panel of an unused PXI/PXI Express slot.

4. Touch any metal part of the chassis to discharge any static electricity.

5. Place the PXI/PXI Express module edges into the module guides at the top and bottom of the chassis and slide the module into the chassis until the module is fully inserted.

6. Secure the device front panel to the chassis front-panel mounting rail using the front-panel mounting screws.

7. Plug in and power on the PXI/PXI Express chassis.

Confirming Device Recognition

1. Select Start»All Programs»National Instruments»Measurement & Automation to open NI Measurement & Automation Explorer (MAX).

2. Expand Devices and Interfaces.

3. Verify that the device appears under Devices and Interfaces»RIO Devices.

Installing the NI 1483

1. Gently insert the guide pins and the high-density card edge of the NI 1483 into the corresponding connectors of the NI FlexRIO FPGA module. The connection may be tight, but do not force the adapter module into place.

2. Tighten the captive screws on the NI 1483 to secure it to the NI FlexRIO FPGA module.

Connect Camera Signals

National Instruments recommends that you use the following cables to connect your camera to the 26-pin SDR connectors on the NI 1483:

• MDR to SDR Camera Link cable (part number 199745A-05)

• SDR to SDR Camera Link cable (part number 199746A-05)
Note: To ensure the high-speed signaling of the Camera Link interface, National Instruments recommends that you purchase a Camera Link cable rather than build a custom cable.

You can use the NI 1483 with the following I/O accessories:

• NI 17xx 5 m pigtail breakout cable (part number 197818-05)

• NI 17xx unshielded screw terminal breakout with 2 m cable (part number 780261-01)

Back to Top

4. Using the NI 1483R with a LabVIEW FPGA Example VI

This section demonstrates how to use an existing LabVIEW FPGA example project to acquire images with the NI 1483R.
Note: Examples available for your device are dependent on the device-specific minimum software requirements. For more information about software requirements for your device, refer to Step 1. Install Application Software and Driver.

Each NI 1483R example project includes the following:

• A LabVIEW FPGA VI that you can compile and run on FPGA hardware

• A Host VI that runs in LabVIEW for Windows and interacts with the LabVIEW FPGA VI
Note: In software, NI FlexRIO adapter modules are referred to as IO Modules.

Complete the following steps to run an example that acquires an image with the NI 1483:

1. Connect a Camera Link camera capable of outputting a 1-tap, 10-bit image to the NI 1483. Ensure that the camera is powered on.

2. This example shows how to use a frame trigger to acquire images from the camera. To use an external trigger source, connect the TTL I/O 0 pin on the D-Sub connector to the trigger source using either a breakout cable or terminal block. If you do not have an external trigger source, you can trigger the camera with a software trigger.

3. Launch LabVIEW.

4. In the Getting Started window, click Find Examples to display the NI Example Finder.

5. In the NI Example Finder window, select Directory Structure.

6. Browse to the example folder for the NI 1483 by selecting Hardware Input and Output»FlexRIO»IO Modules»NI 1483.

7. Select 1-Tap 10-Bit Camera with Frame Trigger and then 1-Tap 10-Bit Camera with Frame Trigger.lvproj.

8. In the Project Explorer window, expand the tree view for the FPGA target you are using.

9. Right-click 1-Tap 10-Bit Camera with Frame Trigger (FPGA).vi and select Compile.
Note: Depending on your hardware configuration, compiling may take 30 minutes to an hour.

10. In the Project Explorer window, double-click 1-Tap 10-Bit Camera with Frame Trigger Snap (Host) VI under My Computer to open the host VI. The VI uses the NI PXIe-7962R as the FPGA target. If you are not using the NI PXIe-7962R, complete the following steps to change the FPGA target.

    a. In the host VI front panel window, select Window»Show Block Diagram to open the VI block diagram.

    b. On the block diagram, right-click the Open FPGA icon (NI PXIe-7962R) and select Configure Open FPGA VI Reference.

    c. In the Configure Open FPGA VI Reference window, click the Browse Project button in the Open VI section.

    d. In the Select VI window that opens, expand the tree view for your device, select the VI under your device and click OK.

    e. Click OK in the Configure Open FPGA VI Reference window.

    f. Save the VI.

11. On the front panel, select your NI FlexRIO device from the RIO Device drop-down listbox.

12. In the Image Width and Image Height spin boxes, enter the values that match the camera output.

13. The value of the Trigger Pulse Width (us) spin box controls the pulse width of the frame trigger that is sent to the camera on Camera Link control line 1. Set this value to satisfy the pulse-width requirements of the camera in use.

14. Set the Start Serial Server? button to true to enable the serial server. The button illuminates when true. You can use the serial server to communicate with the camera, and configure the camera with the configuration utility provided by the camera manufacturer.

15. On the front panel of the 1-Tap 10-Bit Camera with Frame Trigger Snap (Host).vi, click the Run button to run the VI. Check if the I/O Enable? and Initialized? status indicators are lit. If I/O Enable? is not lit, verify that the NI 1483 adapter module is properly connected to the NI FlexRIO FPGA module. If Initialized? is not lit, verify the camera is properly connected and powered on.

16. If the camera is not configured for triggering using Camera Link control line 1, configure it using the camera manufacturer’s configuration utility. Verify that the camera width and height configuration matches the values entered in the Image Width and Image Height spin boxes. The host VI must be running for the manufacturer’s configuration utility to be able to communicate with the camera.

17. Once the camera is configured, click the Snap button on the VI front panel. Clicking Snap initiates a single-frame acquisition. If the camera is properly configured, it does not output a frame until a trigger is provided. Supply a trigger by sending a pulse on TTL I/O 0 or by clicking the SW Trigger button. Repeat this step to acquire another image.

18. Click the STOP button to stop the VI.

19. Close the VI.

Back to Top

5. NI 1483 Component-Level Intellectual Property (CLIP)

The LabVIEW FPGA Module includes a feature for HDL IP integration called CLIP. NI FlexRIO devices support two types of CLIP: user-defined and socketed.

• With a user-defined CLIP, you can insert HDL IP into an FPGA target, enabling VHDL code to communicate directly with an FPGA VI.

• NI FlexRIO devices also support socketed CLIP, which provides the same IP integration functionality of the user-defined CLIP while allowing the CLIP to communicate directly with circuitry external to the FPGA. Adapter module socketed CLIP allows your IP to communicate directly with both the FPGA VI and the external adapter module connector interface.

•The NI 1483 is shipped with socketed CLIP that you can use to add module I/O to the LabVIEW project. This CLIP developed by NI supports Base, Medium, Full, and 80-bit Camera Link configurations. Camera Link data outputs on 10 eight-bit Camera Link ports (A through J) along with flags, all of which are synchronous to the user-selected Image Data Clock. The CLIP also provides access to the Camera Link serial interface, four camera control lines, four TTL I/O lines, two isolated inputs, and inputs for a quadrature encoder.

Refer to the NI FlexRIO Adapter Module Support Help topic of the LabVIEW Help for information regarding NI FlexRIO CLIP, configuring the NI 1483 with a socketed CLIP, and a list of available socketed CLIP and provided signals.

Back to Top

Bookmark & Share


Ratings

Rate this document

Answered Your Question?
Yes No

Submit