From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Retriggerable snap acquisition - IMAQdx

Code and Documents

Attachment

Overview

This code allows you to acquire images from a trigger or event. Typical use cases involve taking an image on each pulse of a quadrature encoder, or along a pulse train.

Description

This code waits for an event to occur (in this case a button push, but it could be any event - a digital line going high/low) and then acquires an image from the IMAQdx camera. It then stops acquisition and restarts. Performance of this VI could be improved by configuring the camera to use hardware triggering by configuring the camera attributes.


Steps to Implement or Execute Code

  1. Run the VI
  2. Push the Trigger button.

Requirements

Software

LabVIEW 2010 or later

NI IMAQdx driver

Hardware

Camera

Additional Images or Video



National Instruments
Staff Certification Engineer

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

Contributors