NI-IMAQ for USB Cameras

Similar documents
LabVIEW Report Generation Toolkit for Microsoft Office

NI-DAQ mx Base 3.x. Contents GETTING STARTED GUIDE

LabVIEW Report Generation Toolkit for Microsoft Office User Guide

Coupling Microsoft Excel with NI Requirements Gateway

LabVIEW DSP Test Integration Toolkit for TI DSP

Coupling Microsoft Visio with NI Requirements Gateway

IMAQ. IMAQ Vision for LabVIEW User Manual. IMAQ Vision for LabVIEW User Manual. June 2003 Edition Part Number B-01

footscan SCSI system Installation guide: balance software

Getting Started with the LabVIEW Mobile Module Version 2009

NI Multisim Analog Devices Edition

Getting Started with Vision 6

LABVIEW DSP TEST TOOLKIT FOR TI DSP

Pacesetter BES Lettering Installation Guide

Distance-Learning Remote Laboratories using LabVIEW

Getting Started Manual

How To Use Vision Builder Ai With An Inspection System

LabVIEWTM. Robotics Programming Guide for the FIRST Robotics Competition. LabVIEW Robotics Programming Guide for FRC. January D-01

Getting Started with the LabVIEW Mobile Module

Software User's Guide

NI Real-Time Hypervisor for Windows

System Overview and Terms

LabVIEW Internet Toolkit User Guide

Quick Start Using DASYLab with your Measurement Computing USB device

NI InsightCM Server Version 1.0

Micro Cam Software. User Manual V1.3

Python for Series 60 Platform

Screen Capture. User s Guide. For ClassPad Series

EET 310 Programming Tools

Fieldbus. NI-FBUS Communications Manager User Manual. NI-FBUS Communications Manager User Manual. February 2004 Edition Part Number D-01

Software User's Guide

Embroidery Fonts Plus ( EFP ) Tutorial Guide Version

NI PXI Installing Your PXI Board INSTALLATION GUIDE

Cognex Vision Software

Lenovo Miix 2 8. User Guide. Read the safety notices and important tips in the included manuals before using your computer.

Fiery E100 Color Server. Welcome

Nero MediaStreaming for MCE Manual

Job Scheduler User Guide IGSS Version 11.0

Measurement Studio. Contents RELEASE NOTES

NI GPIB Analyzer User Manual. GPIB Analyzer User Manual. February 2003 Edition Part Number A-01

Using these objects to view the process of the whole event from triggering waiting for processing until alarm stops. Define event content first.

S PT-E550W ELECTRONIC E C LABELING L SYSTEM

Macros in Word & Excel

F-Series Desktop User Manual F20. English - Europe/New Zealand

Personal Call Manager User Guide. BCM Business Communications Manager


TUTORIAL 4 Building a Navigation Bar with Fireworks

In this session, we will explain some of the basics of word processing. 1. Start Microsoft Word 11. Edit the Document cut & move

Ultimus and Microsoft Active Directory

LabVIEWTM. Database Connectivity Toolkit User Manual. Database Connectivity Toolkit User Manual. June A-01

Getting started 7. Designing interfaces 27

PLAY VIDEO. Close- Closes the file you are working on and takes you back to MicroStation V8i Open File dialog.

Software Installation Instructions IK 5000 QUADRA-CHEK. Software Version 3.0.x

Using the NI 17xx Smart Camera Direct Drive Lighting Controller

Kaspersky Password Manager

Introduction to Microsoft Word 2003

Asset Track Getting Started Guide. An Introduction to Asset Track

COGNEX. Cognex Vision Software. GigE Vision Cameras. User s Guide

Quick Start Guide GigE Vision Single-Head Controller

Microsoft Migrating to PowerPoint 2010 from PowerPoint 2003

Using SynchronEyes Software with Mobile Devices

TIBCO Fulfillment Provisioning Session Layer for FTP Installation

NI DIAdem. Getting Started with DIAdem. Getting Started with NI DIAdem. July L-01

Service Desk Manager QUICK TIP: Service Desk Manager 12.6 Upgrade New Features and Known Issues

Appointment Scheduler

Sharing Software. Chapter 14

Copyright 1999 by EPSON America, Inc. 3/99 Torrance, California, USA

Database Connectivity Toolset User Manual

SignalExpress. Getting Started with SignalExpress. Getting Started with SignalExpress. August 2004 Edition Part Number A-01

Legal Notes. Regarding Trademarks. Model supported by the KX printer driver KYOCERA MITA Corporation

DeviceAnywhere Enterprise. ios Device Onboarding Guide

ZebraDesigner Pro. User Guide L-003 Rev. A

Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the

Excel 2007: Basics Learning Guide

Core Protection for Virtual Machines 1

NiceLabel Quick Start Guide

Easy Setup Guide for the Sony Network Camera

edgebooks Quick Start Guide 4

Chapter 7 Event Log. 7.1 Event Log Management

ActiView. Visual Presenter Image Software User Manual - English

Accounting Manager. User Guide A31003-P1030-U

Instruction manual. testo easyheat Configuration and Analysis software

How to use Backitup Modify Existing Schedule jobs

IP Camera Centralization Management. Client Application. (IPCMonitor) Feb, 2013 Version 1.9. User Manual

DAQ Getting Started Guide

Be sure to connect the USB cable from TonePort into your computer s USB port, and then proceed with the following steps

Ansur Test Executive. Users Manual

Three Levels of Data-Logging Software from National Instruments

Intel Extreme Graphics 2 User s Guide for Version 14.x Driver Releases

AW-HE60 Firmware Upgrade Procedure

USING THE HP UNIVERSAL PRINT DRIVER WITH WINDOWS 8 AND WINDOWS SERVER 2012

Multi-function Front Panel USB2.0/Firewire 400/eSATA

WebEx Sharing Resources

User's Guide (PC Software)

Cisco Cius Development Guide Version 1.0 September 30, 2010

Keynote DeviceAnywhere/HP Application Lifecycle Management (HP ALM/QC) Integration Guide. TCE Automation 5.2

TR-3 Channel Editor. Software Manual

DinoXcope User Manual

Epson Brightlink Interactive Board and Pen Training. Step One: Install the Brightlink Easy Interactive Driver

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Transcription:

USER GUIDE NI-IMAQ for USB Cameras Contents Conventions The NI-IMAQ for USB Cameras User Guide contains information you need to get started with NI-IMAQ for USB Cameras. This guide presents the basics of image acquisition, provides an overview of the software, and briefly describes application development with NI-IMAQ for USB Cameras. Conventions... 1 About NI-IMAQ for USB Cameras... 2 Application Development Environments... 2 Building Applications with NI-IMAQ for USB Cameras... 3 Architecture... 3 NI-IMAQ for USB Cameras VI Location... 3 Example Programs... 5 Buffer Management... 5 Acquisition Types... 6 Snap... 6 Grab... 6 NI-IMAQ for USB Cameras and NI Vision Assistant... 7 Error Codes... 9 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.

bold italic monospace 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 text denotes variables, emphasis, a cross reference, or an introduction to a key concept. This font also denotes text that is a placeholder for a word or value that you must supply. 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. About NI-IMAQ for USB Cameras NI-IMAQ for USB Cameras provides the ability to use USB cameras that have Direct Show Filters with the NI Vision Assistant or LabVIEW and IMAQ Vision. The cameras may operate at various resolutions and frame rates, depending on camera capabilities. NI-IMAQ for USB Cameras can acquire and set properties using the camera manufacturer driver and Direct Show functions. For NI-IMAQ for USB Cameras to use the camera successfully, the camera manufacturer driver needs to be correctly installed and recognized by the operating system. Refer to your camera documentation for instructions about how to correctly install the manufacturer driver. Application Development Environments NI-IMAQ for USB Cameras supports the following application development environments for Windows 2000/XP: LabVIEW 7.0 or later with IMAQ Vision 7.1 or later Vision Assistant 7.1 or later NI-IMAQ for USB Cameras User Guide 2 ni.com

Building Applications with NI-IMAQ for USB Cameras The NI-IMAQ for USB Cameras Virtual Instrument (VI) Library is a series of LabVIEW VIs for using LabVIEW with your USB camera and is included with the NI-IMAQ for USB Cameras software. IMAQ Vision for LabVIEW is an image processing and analysis library consisting of more than 400 VIs. IMAQ Vision for LabVIEW is required to use the NI-IMAQ for USB Cameras VI library. The following sections describe the basic concepts and information necessary to build an application with NI-IMAQ for USB Cameras. Architecture Figure 1 shows a block diagram of the NI-IMAQ for USB Cameras architecture. LabVIEW and IMAQ Vision Vision Assistant IMAQDirectShowDLL Application Level Camera Manufacturer Direct Show Filter NI-IMAQ for USB Cameras VI Location Figure 1. NI-IMAQ for USB Cameras Architecture To access the NI-IMAQ for USB Cameras VIs from within LabVIEW, select NI Measurements»Vision»IMAQ USB from the Functions palette of your block diagram, as shown in Figure 2. National Instruments Corporation 3 NI-IMAQ for USB Cameras User Guide

Figure 2. NI-IMAQ for USB Cameras Palette Location Note For help on specific VIs, select Help»Show Context Help from the LabVIEW menu. Place the mouse over a VI on the block diagram, and the context help window will display information about the VI. NI-IMAQ for USB Cameras User Guide 4 ni.com

Example Programs Buffer Management The NI-IMAQ for USB Cameras examples illustrate some common applications. You can find these examples in the <LabVIEW>\examples\imaq directory. For a brief text description of an example, open the example VI and select Windows»Show VI Info. The IMAQ Create and IMAQ Dispose VIs manage image buffers in LabVIEW. IMAQ Create, shown in Figure 3, allocates an image buffer. Image Name is a label for the buffer created. Each buffer must have a unique name. Image Type specifies the type of image being created. Use Grayscale (U8) for 8-bit monochrome images, Grayscale (I16) for 16-bit monochrome images, and RGB (U32) for RGB color images. Note If Image Type is set to a value incompatible with the current video mode, the Image Type value automatically changes to a compatible value. New Image contains pointer information to the buffer, which is initially empty. When you wire New Image to the Image terminal of an image acquisition VI, the image acquisition VI allocates the correct amount of memory for the acquisition. If you are going to process the image, you may also need to wire a value to Border Size. Border Size is the width, in pixels, of a border created around an image. Some image processing functions, such as labeling or morphology, require a border. Figure 3. IMAQ Create IMAQ Dispose, shown in Figure 4, frees the memory allocated for the image buffer. Call this VI only after the image is no longer required for processing. Figure 4. IMAQ Dispose National Instruments Corporation 5 NI-IMAQ for USB Cameras User Guide

Acquisition Types Two types of image acquisitions are available in LabVIEW snap and grab. The following sections describe and give examples for each acquisition type. NI-IMAQ for USB Cameras does not support simultaneous acquisitions from more than one camera. Note The NI Vision Assistant USB Acquisition Module always acquires images when an image acquisition step is open. Make sure to close the step before acquiring an image in LabVIEW. Refer to the NI-IMAQ for USB Cameras and NI Vision Assistant section of this guide for more information. Snap A snap acquires a single image into a memory buffer. Use this acquisition mode to acquire a single frame to a buffer. When you invoke a snap, it initializes the device and acquires the next incoming video frame to a buffer. Use a snap for low-speed or single-capture applications. Use IMAQ USB Snap to perform a snap acquisition in LabVIEW. Figure 5 shows a simplified block diagram for using IMAQ USB Snap. Figure 5. Acquiring an Image Using IMAQ USB Snap Grab A grab is a continuous, high-speed acquisition of data to a single buffer in host memory. This function performs an acquisition that loops continually on one buffer. You can get a copy of the acquisition buffer by grabbing a copy to a LabVIEW image buffer. You must use two VIs IMAQ USB Grab Setup and IMAQ USB Grab Acquire for a grab acquisition in LabVIEW. Call IMAQ USB Grab Setup once to initialize the acquisition and start capturing the image to an internal software buffer. You can call IMAQ USB Grab Acquire multiple times to copy the image currently stored in the internal buffer to a LabVIEW image buffer. After the program finishes copying images, call IMAQ USB Close once to shut down the acquisition. Figure 6 shows a simplified block diagram for using IMAQ USB Grab Setup and IMAQ USB Grab Acquire. NI-IMAQ for USB Cameras User Guide 6 ni.com

Figure 6. Acquiring Images Using IMAQ USB Grab NI-IMAQ for USB Cameras and NI Vision Assistant NI-IMAQ for USB Cameras provides an add-on module for Vision Assistant 7.1 and greater. This module allows you to acquire images from USB cameras and process these images with Vision Assistant. To access the NI-IMAQ for USB Cameras Vision Assistant Module, select the Acquire Image option after launching Vision Assistant, or select the Acquire Image icon on the Vision Assistant menu bar. Either method opens the NI-IMAQ for USB Cameras Image Acquisition window in Vision Assistant. The NI-IMAQ for USB Cameras Vision Assistant Image Acquisition window allows you to select a camera from a list of USB cameras recognized by the system, set properties of the camera, and acquire images. Figure 7 shows the NI-IMAQ for USB Cameras Image Acquisition window. National Instruments Corporation 7 NI-IMAQ for USB Cameras User Guide

1 Snap 2 Grab 3 Sequence 4 Copy to Browser 5 List of Cameras 6 Camera Video Settings 7 Camera Image Settings Figure 7. NI-IMAQ for USB Cameras Acquisition Page in Vision Assistant The following options are available in the NI-IMAQ for USB Cameras Image Acquisition window. Refer to Figure 7 for the location of each option within the window. Snap Acquires a single image from the selected camera. Grab Acquires a continuous image from the selected camera. Sequence Acquires a user specified number of images. Sequence acquisitions are useful for capturing events that change quickly. Copy to Browser Copies the current image in the display to the Vision Assistant Image Browser for processing. Multiple images can be sent to the browser and then processed later using Vision Assistant. List of Cameras Lists the available USB cameras. Camera Video Settings Opens a dialog box with the video settings the camera supports. Camera Image Settings Opens a dialog box with the image settings the camera supports. NI-IMAQ for USB Cameras User Guide 8 ni.com

Error Codes Error Code Each function returns an error code that indicates the success or failure of the function. The following table describes the error codes returned by each NI-IMAQ for USB Cameras function. Table 1. NI-IMAQ for USB Cameras Error Codes -1074396032 Not enough memory. -1074396030 Timeout error. Description -1074396028 Internal error. Camera Manufacturer property page produced an error. -1074396026 Not a valid USB session. -1074396024 System memory error. -1074396023 Feature not available in camera. Camera Manufacturer property page produced an error. -1074396020 Filter name not found. -1074396018 No acquisition in progress. -1074396017 Invalid value on Property Page. Camera Manufacturer property page produced an error. -1074396016 Multiple camera acquisition not supported. -1074396015 Not able to connect to camera, may be in use. -1074396014 Invalid image. Make sure the image is not NULL. 0 No error. National Instruments Corporation 9 NI-IMAQ for USB Cameras User Guide

National Instruments, NI, ni.com, and LabVIEW are trademarks of National Instruments Corporation. Refer to the Terms of Use section on ni.com/legal for more information about National Instruments trademarks. Other product and company names mentioned herein are trademarks or trade names of their respective companies. For patents covering National Instruments products, refer to the appropriate location: Help»Patents in your software, the patents.txt file on your CD, or ni.com/patents. 2005 National Instruments Corporation. All rights reserved. 371492A-01 JAN05