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

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. 

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 are tested using NI LabVIEW 2019 (32-bit).

The ActiveX example below works with all of Teledyne FLIR FireWire, GigEVision, USB2, and USB3Vision cameras except Blackfly S, Forge, Firefly S/DL and Oryx models.

IMAQdx examples work with all of Teledyne FLIR FireWire, GigEVision, USB2, and USB3Vision cameras.

For a list of compatible LabVIEW versions, see here.


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.

IMAQdxEx - Two Cameras SW and HW Trigger

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

IMAQdxEx - Grab and Save to AVI

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

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.