Programmatically Finding Names of Specific Products In DAQmx System

Updated Apr 21, 2020

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

Issue Details

I would like to get the names of products filtered through the channels they have e.g. analog input, digital input, etc.

Solution

A DAQmx System node has a property called Device Names which indicates the names of all devices installed in the system.  
A DAQmx Device Property Node can be used to determine the product type and I/O Type which we would like to list in a string array. The example code below shows how to filter only the names of the products that have Analog Input channels. 



DAQmx System and DAQmx Device Property Nodes are located in the DAQmx>>Advanced>>DAQmx Constants & Property Nodes Palette. Changing I/O Type in DAQmx Device Property Node you can choose preferable channel filter.
 

Additional Information

String created like this you can use later with Create Channel VI or pass it to the Ring .