This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Retrieve All DAQmx Physical Channels of a System Programmatically

Updated May 8, 2023

Reported In

Software

  • LabVIEW

Driver

  • NI-DAQmx

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 a 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.