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

Use events to insert ROIs in image

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.

    Software

  • Vision Development Module
  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates how to insert Regions of Interest (ROIs) into an example image using event structures.

 

Description

This VI has a couple of preset ROIs that appear and disappear based on user events (button clicks). They show up separately or together, with the use of the IMAQ Group ROIs VI.

 

Requirements

 Software

  • LabVIEW Base Development System 2012 (or compatible)
  • Vision Development Module 2012 (or compatible)

 Hardware

  • No hardware required

 

Steps to Implement or Execute Code

  1. Download and extract the attached file "Show ROIs in Image using event structure LV2012 NIVerified.zip"
  2. Open VI and follow the instructions in Front Panel and Block Diagram and run the program.

 

Additional Information or References

Front Panel.png

 

 

Show ROIs in Image using event structure 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.**

Jeff | LabVIEW Software Engineer

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