Reading Basler Device IDs in Labview

Updated Sep 11, 2018

Reported In

Driver

  • NI-IMAQdx

Issue Details

My system has multiple cameras connected to it, and each one needs to perform a different task. In order to tell them apart, I would like to read the Serial Number of each camera programmatically. When I try to use an IMAQ Property Node to read the Serial number, however, I get a number that does not match what is printed on the camera.
 
How can I read the Serial Number of my Basler GigE cameras from LabVIEW?

Solution

For Basler Devices, the Serial Number is called a Device ID. In order to read the Device ID, you can implement the following code:

Additional Information

The Device ID will come in as a string, and can be converted to a different datatype as needed.

WAS THIS ARTICLE HELPFUL?

Not Helpful