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

Programmatically Set Camera Attribute using Vision Development Module in LabVIEW

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

  • LabVIEW

    Driver

  • NI Vision Acquisition Software

Code and Documents

Attachment

 

Overview

This VI demonstrates how to set a camera attribute using NI Vision Development Module.

 

Description

In order to use the IMAQdx property node to programmatically change an attribute, you need to know the full name of the attribute.

This example populates a list of all the available attributes for your IMAQdx camera and set an attribute.

 

Requirements

 Software

  • LabVIEW Base Development System 2012 (or compatible)
  • NI Vision Development Module 2012 (or compatible)
  • If running in a Real-Time context, you will need the LabVIEW Real-Time Module 2012 (or compatible)

 Hardware

  • Camera

 

 Steps to Implement or Execute Code

  1. Download and open the attached ZIP-file
  2. Open the VI and follow the instructions inside

 

Additional Information or References

 

Set Camera Attribute LV2012 NIVerified.vi - Front Panel.png


 

Set Camera Attribute 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.**

Hope this helps.
-Ben

WaterlooLabs

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

Comments
Ando'o
Member
Member
on

And how can I set the "Command" type attribute or send command? There are different types of attributes for setting (String, bool, U32, U64), but there isn't Command type.