Example Code

Generic Vision Driver

Code and Documents

Attachment

Overview

Oftentimes in Vision applications a user just needs simple functionality such as snapping an image, grabbing a stream of images, or capturing n # of images. In the current implementation of the NI Vision driver, all of these functions are bus-specific, meaning that code that snaps images for an IMAQ framegrabber can't be used for an application that snaps images for a USB camera.

The Generic Vision Driver resolves this issue by giving a set of VIs that implement a subset of common functionality between the two interfaces allowing the developer to use the same API for both IMAQ and IMAQdx.

Description

The VI Package is included below if you would just like to use the API. I've also included the source code and build specfication if you would like to see the implementation or add your own functionality.


Steps to Implement or Execute Code

To install the API to have access to the functions through the LabVIEW environment:
1. Double-click on the national_instruments_lib_universal_vision_driver-x.x.x.x.vip

2. Click "Install" when the VI Package Manager window opens.

Requirements

Software

LabVIEW 2015


Tanner B.
Systems R&D Engineer - Aerospace, Defense, and Government
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors