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

Adding Video Camera

Code and Documents

Attachment

Description

Testing can be done in various environments that sometimes may not be safe for operators to interact with the environment. By following this tutorial and downloading the .llb below you can add Custom Workspace Tool to NI VeriStand to monitor multiple cameras that are connected to the test computer and have been configured using MAX and the NI IMAQdx software.

 

Hardware:

Any USB, TCP/IP, or Firewire camera compatible with the NI IMAQdx software.

 

Software:

Measurement and Automation Explorer (MAX)

LabVIEW 2011 SP1 or newer

Veristand 2011 SP1

NI IMAQdx

 

The tool will wait for user input. The user must either select a camera or press the stop button. If a invalid or unconfigured camera is selected the tool notifies the user and continues to run to reselect a configured camera.

 

Veristand Tool Video market 1.jpg

Fig 1. Monitoring a five servo arm from VeriStand using the Custom Workspace Tool

 

 

Related Links:

IP Camera Trouble Shooting

Firewire Camera Trouble Shooting

 

Kyle Hartley
Senior Embedded Software Engineer

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