Retrieve All DAQmx Physical Channels of a System Programmatically

Updated May 1, 2018

Issue Details

I want to programmatically retrieve all available DAQmx physical channels in my LabVIEW application.

Solution

The example code below outlines how to iterate through all of the devices in DAQmx System to acquire the physical channels: 

Note: DAQmx System and DAQmx Device Property Nodes are located in the DAQmx>>Advanced>>DAQmx Constants & Property Nodes palette.

Additional Information

In the DAQmx API, DAQmx Physical Channels are stored as properties of the DAQmx Device class, which means that the available physical channels for any given device can be accessed by reading from the DAQmx Device Property Node for that device.   

Similarly, all of the DAQmx Devices currently in the system are stored in the DevNames property of the DAQmx System class, and can be accessed with a DAQmx System Property Node.  

WAS THIS ARTICLE HELPFUL?

Not Helpful