Example Code

VBAI Acquire Button on Inspection Interface

Code and Documents

Attachment

Overview

This VI uses an acquire button on the inspection interface to control when an acquisition occurs. The acquisition currently in the Acquire state is the Simulate Acquisition function. Its default path points to the sample image location that comes by default on a Windows 7 machine. This function can be replaced to acquire from a real camera. It's also possible to add more states to perform some processing on each image that's acquired.

Steps to Implement or Execute Code

  1. Open the inspection.
  2. Switch to the inspection interface by selecting File>>Switch to Inspection Interface.
  3. Run the inspection and click the "Acquire" button.

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

Contributors