FLIR Knowledge Base
Search for...
Search
        |     
Exclude unwanted words:
Browse KB Articles
Go Back Printable Version Email This Article Bookmark This Article

How do I program my camera in National Instruments (NI) LabVIEW?

KB Number: 10714
Last Revision Date: 4/18/2016

We continue to work with National Instruments (NI) to provide tools for developers to better integrate our cameras in LabVIEW. The list of examples below demonstrate the fundamentals of connecting, configuring, and streaming our cameras in LabVIEW. This article does not apply to Blackfly S cameras, which do not require additional examples.

Pre-requisite: The following examples require National Instrument’s LabVIEW software to be installed. Users are encouraged to run National Instrument’s Measurement and Automation Explorer to ensure the camera is able to stream before running these examples. ActiveX examples require installing FlyCapture2 (recommend version 2.6 or higher).

All the examples below work with FireWire, GigEVision, USB2, and USB3Vision interfaces.

Download the V10 examples for LabVIEW version 2011, 2012, or 2013. Download the V12 examples for LabVIEW version 2013.

For a list of compatible LabVIEW versions, see here.

ActiveX_Single_Camera_Free_Running_Or_Software_Trigger

This example streams a single camera in free running or software trigger mode. It displays the current frame rate. Also, users can use the camera control dialog to change camera settings. A live view window is also included.

Download V10 Example

Download V12 Example

ActiveX_Two_Cameras_Free_Running

This example sets up two cameras in the designated grab mode and video mode. It grabs images simultaneously from two cameras and displays them on the screen. The image data is also displayed on screen.

Download V10 Example

Download V12 Example

Additional requirement – This example requires installing FlyCapture2 software and registering FlyCap2 ActiveX DLL.

IMAQdxEx - Four Cameras SW and HW Trigger

This IMAQdx example enables capturing of images from four identical cameras simultaneously. The user has the option to choose software trigger or hardware trigger. A single button initiates software trigger on four cameras. A live image is displayed upon software or hardware trigger.

Download V10 Example

Download V12 Example

IMAQdxEx - Grab and Save to AVI

This IMAQdx example captures live images and saves them to AVI.

Download V10 Example

Download V12 Example

IMAQdxEx - HardwareTriggerLine0

This IMAQdx example starts the camera in trigger mode using trigger source “Line 0”. The grabbed images are displayed on to the screen.

Download V10 Example

Download V12 Example

Convert FireWire embedded timestamp (FW)

This example converts Firewire 1394 embedded timestamp value to absolute cycle time information.

Download V10 Example

Download V12 Example

Default Examples

National Instruments installation includes several examples using NI-IMAQdx library. The examples are built using VC++6 and placed under the directory:

C:\Users\Public\Documents\National Instruments\NI-IMAQdx\Examples\MSVC

Was this article helpful?

Go Back Printable Version Email This Article Bookmark This Article