Example Code

IMAQ Triggered Sequence and Save

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Machine Vision

    Software

  • Vision Development Module
  • LabVIEW

    Driver

  • NI Vision Acquisition Software

Code and Documents

Attachment

Overview

The example demonstrates how to acquire a number of frames with NI-IMAQ and save them to disk.

 

Description

This example uses the low level asynchronous acquisition of NI-IMAQ to acquire frames to preallocated buffers.
If activated the acquisition can be triggered so a frame is only acquired when a trigger occurs. The 'IMAQ Occurrence Config' function can generate a occurrence when the acquisition starts or stops, so the application can check whether the asynchronous operation has finished.

 

Requirements

 Software

  • LabVIEW 2012 Base Development System (or compatible)
  • Vision Development Module 2012 (or compatible)
  • NI-IMAQ 4.7 (or compatible)

 Hardware

  • NI-IMAQ compatible hardware

 

Steps to Implement or Execute Code

  1. Select a path to save the frames to
  2. Configure the acquisition settings
  3. Run the VI

 

Additional Information or References

IMAQ Triggered Sequence and Save LV2012 NIVerified.vi - Front Panel.png

 

IMAQ Triggered Sequence and Save LV2012 NIVerified.vi - Block Diagram.png

 

 

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**

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

Comments
hhammer
Member
Member
on

hello,do you have the c program of this vi,email 1255694986@qq.com