Addressing Camera Name Change in LabVIEW

Updated Apr 27, 2023

Reported In


  • Camera


  • NI-IMAQdx

Programming Language

  • LabVIEW G

Issue Details

I'm developing a vision acquisition application in a Desktop PC. I'm my development computer I can reference to the camera and the acquisition runs fine. However, when I change to the deployment computer, my executable cannot find the camera because it has changed its name in MAX. How can I make sure the application will run regardless of the device's name in MAX?


This issue may happen when NI-IMAQdx assigns different interface names to the cammeras in your system. A classic example is when you develop in a Desktop PC containing only the camera of your application and you will move your code to a laptop that contains na integrated camera and you will connect the camera of your application. In the first case, NI-IMAQdx will assign the name cam0 to your external camera, but in the Laptop it will be named cam1 because the integrated webcam was named cam0.

The IMAQdx Enumerate helps you to address this issue programmatically in LabVIEW by listing the available cameras in your system.

The Camera Information Array output is na array of clusters containing the information on the camera.

Additional Information

You can then use array and cluster functions to show a list of cameras in ListBox control, for example, and then add more code to make user select the desired camera.