Programmatically Obtaining Names of all DAQmx Devices on a Machine

Updated May 1, 2018

Reported In

Driver

  • NI-DAQmx

Issue Details

When using the DAQmx driver, a default name is given to all devices when they are installed on the machine. Is there a way to obtain the device name for my connected devices programmatically?

Solution

The default DAQmx device names (i.e. Dev1, Dev2, cDAQ1, etc.) or those specifically assigned in MAX can be obtained using a property node.  The DAQmx System Property Node is located in the System Setup subpalette.

The DAQmx System Property Node contains a specific property called Device Names.

The Device Names property returns an array of all DAQmx devices recognized by MAX.

Additional Information

If a specific device name is desired, it can be parsed or removed from the array using the Index Array function in LabVIEW, shown in the VI snippet below.

WAS THIS ARTICLE HELPFUL?

Not Helpful