Distributing Applications Built Using Vision Development Module

Publish Date: Mar 07, 2018 | 4 Ratings | 5.00 out of 5 | Print | 1 Customer Review | Submit your review

Overview

You can use the LabVIEW Application Builder in conjunction with Vision Development Module to distribute applications that involve image processing. This tutorial is a step by step guide on a variety of methods to distribute the necessary installers to the target machine. Furthermore, it discusses the different licenses required for the application to run on the target machine.

Table of Contents

  1. Vision Development Module Overview
  2. Required Software and Licenses
  3. Include Vision Run-Time, NI-IMAQ, and NI-IMAQdx With LabVIEW 8.5 and Later Application
  4. Include Vision Run-Time, NI-IMAQ, and NI-IMAQdx With LabVIEW 8.0 or 8.2 Application
  5. Include Vision Run-Time Engine With LabVIEW 7.1 or Earlier Application
  6. Manually Transfer or Download the Vision Run-Time Engine, NI-IMAQdx, and NI-IMAQ to Target Machine
  7. Related Links

1. Vision Development Module Overview

The Vision Development Module (VDM) provides machine vision & image processing functions for LabVIEW, C/C++, Visual Basic, and .NET. In general, VDM functions are to be used for post processing images. Some example functions are: pattern matching, particle analysis, edge detection, thresholding, histograms, and optical character recognition. In addition, VDM includes Vision Assistant, a prototyping and code generation tool similar to VBAI in its menu-driven interface. Vision Assistant is a useful tool for developing and testing a series of image processing steps from which code can then be generated. VDM is supported on Windows and LabVIEW Real-Time. This means you can use VDM on remote targets such as the CVS (Compact Vision System) and the Smart Camera provided you are also using the LabVIEW Real-Time Module. 

Furthermore, the Vision Development Module includes a license for NI Vision Acquisition Software (VAS). The NI Vision Acquisition Software is a set of drivers and utilities with functions to acquire, display, and save images from any NI frame grabber, GigE Vision camera, or IEEE 1394 (Firewire) camera. VAS is included in both VDM and VBAI and is a bundle of three drivers:

  • NI-IMAQ - acquisition from National Instruments frame grabbers, as well as general display, file saving and acquisition functions
  • NI-IMAQdx - acquisition from GigE Vision, IEEE-1394 cameras, USB cameras that are DirectShow compliant (VAS 2009 onwards), and some IP cameras
  • NI-IMAQ I/O - configuration of FPGA included in the PCI-8254R, PCI-8255R Compact Vision System

Back to Top

2. Required Software and Licenses

The Vision Run-Time Engine must be installed and activated on the target PC when deploying an application built using Vision Development Module (VDM). If the programming environment used was LabVIEW, the LabVIEW Run-Time Engine needs to be installed.

If the NI-IMAQdx driver is used in the application (for firewire/GigE and USB cameras), then you would need to have NI-IMAQdx installed and activated on the target machine as well.

Note: As of August 2009, the NI-IMAQdx driver, which is part of the Vision Acquisition Software, can be activated with the Vision Run-Time Engine license, so no additional Vision Acquisition Software license needs to be purchased. If the application was built in a version prior to Vision Development Module 2009, then a license for both the Vision Acquisition Software as well as the Vision Run-Time Engine will be required for the target machine.

If the NI-IMAQ driver is used in the application (for acquisition from National Instruments frame grabbers, as well as general display, file saving and acquisition functions), then you would need to have NI-IMAQ installed on the target machine as well. NI-IMAQ does not require any activation.

For a more detailed description of the licensing requirements, especially with applications using Vision 7.1.1 and earlier, consult KnowledgeBase 2HUBJPXL: Licensing National Instruments Vision Software.

Back to Top

3. Include Vision Run-Time, NI-IMAQ, and NI-IMAQdx With LabVIEW 8.5 and Later Application

  1. In the Project Explorer window, right-click Build Specifications and select New » Installer.
  2. Select Additional Installers from the Category tree of the My Installer Properties window.
  3. Place a check mark in the NI Vision Run-Time Engine X.X checkbox as seen in the image below. (Note: The installer will attempt to locate the run-time engine from the same directory where NI Vision Development Module was installed. If you no longer have this distribution you can download the run-time from Drivers and Updates: Machine Vision. Search for Vision Run-Time and download the proper version for your application.)
  4. Place a check mark in the  NI-IMAQdx X.X checkbox, as seen in the image below, if you used any of the NI-IMAQdx VIs in your application.
  5. Place a check mark in the NI-IMAQ X.X checkbox, as seen in the image below, if you used any of the NI-IMAQ VIs in your application.
  6. Configure your installer as you would normally and click OK. LabVIEW will create your installer including the Vision Run-Time Engine and any other additional installers as a self extracting executable. The Vision Run-Time Engine and other installers, like NI-IMAQ and NI-IMAQdx, will install when the application installer is executed. After installation, you will be prompted to activate the Vision Run-Time Engine and NI-IMAQdx if installed.

Note: If you choose not to activate immediately, the Vision Run-Time Engine will run in Evaluation mode for 30 days starting immediately after the installation is finished.

Back to Top

4. Include Vision Run-Time, NI-IMAQ, and NI-IMAQdx With LabVIEW 8.0 or 8.2 Application

  1. Download one of the attached ZIP files and unzip it to the \Program Files\National Instruments\Vision\Run-Time Engine\Distribution folder.  Choose the version that corresponds to your version of the Vision Development Module.  For instance, if you are using NI-Vision 8.2, use vision82rte.zip.
  2. Run the setup.exe file inside the folder to install it on your development system. This lets LabVIEW see the engine when populating the "Additional Installers" list. (Note: You will be asked to activate the Run-Time Engine. You do NOT have to do this, since the Vision Development Module is already installed on your development machine.)
  3. After installing, reboot your system.
  4. Now when you create a new LabVIEW installer, the list of Additional Installers will include "NI Vision Run-Time Engine 8.x". Follow the steps in the above section to build an installer with the Vision Run-Time Engine, NI-IMAQdx and NI-IMAQ included.

Back to Top

5. Include Vision Run-Time Engine With LabVIEW 7.1 or Earlier Application

In LabVIEW Build Application or Shared Library (DLL) tool, add the proper version of the Vision Run-Time Engine file (found on the IMAQ Vision Deployment Engine CD) as a support file. You must install the same run-time engine version as the version of the Vision Development Module installed on the development machine.

  1. With the Build Application or Shared Library (DLL) window open, select the Source Files tab.
  2. Click Add Support File... and select the proper run-time engine file (eg: vision71rte.exe for NI-Vision 7.1). Your LabVIEW program should already be included in the source files window.
  3. Open the Installer Settings tab, place a check mark in the Create Installer checkbox.
  4. Change the Installation name, directory, and so on if desired.
  5. Click on the Advanced... button.
  6. In the Advanced Installer Settings window place a check mark in the Run executable after installation checkbox.  Make sure Wait until done checkbox is unchecked.
  7. Add the command visionXXrte.exe as the executable where XX stands for the version of the runtime engine you included (In other words, replace XX with 71 for vision71rte.exe) and /qn in the command line argument.
  8. Click OK to exit the Advanced Installer Settings window.
  9. Configure your application as you would normally and click the Build button. LabVIEW will compile your code including the Vision Run-Time Engine as a self extracting executable. The Vision Run-Time Engine executable will install after the application installer is executed.

Note: If you must run multiple executables after the installer completes then you will need to use a batch file. More information on batch files can be found in the following KnowledgeBase Articles:

Back to Top

6. Manually Transfer or Download the Vision Run-Time Engine, NI-IMAQdx, and NI-IMAQ to Target Machine

  1. If NI-IMAQdx, NI-IMAQ or NI-IMAQ I/O are needed on the target machine, navigate to Drivers and Updates: Machine Vision.
  2. Search for Vision Acquisition Software.
  3. Download the Vision Acquisition Software version that matches your Vision Development Module version. Note: You may download a newer version of Vision Acquisition Software as long you as verify within the readme file that it supports the version of Vision Development Module that your application was created with.
  4. Navigate back to Drivers and Updates: Machine Vision and search for Vision Run-Time.
  5. Download the Vision Development Module Run-Time Engine that matches your Vision Development Module version on the development machine. If you would like to manually transfer the Vision Development Run-Time Engine, it can be found in the Program Files\National Instruments\Vision\Run-Time Engine directory of the development machine. Note: You may download a newer version of the Vision Development Module Run-Time Engine as it is backwards compatible. However, verify that it is compatible with your Vision Development Module version in the readme file.
  6. Install the Vision Run-Time Engine and activate using the Vision Run-Time Engine license.
  7. Install the Vision Acquisition Software and activate using the Vision Run-Time Engine license if using Vision Run-Time Engine 2009 or later. Otherwise activate with separate Vision Acquisition Software License.

Back to Top

7. Related Links

 

Back to Top

Customer Reviews
1 Review | Submit your review

Image provided on this page is blurry.  - Jul 23, 2015

Image provided on this page is blurry.

Bookmark & Share



Ratings

Rate this document

Answered Your Question?
Yes No

Submit