このコンテンツは設定された言語で表示できません。

このコンテンツは表示可能な別の言語で表示されています。 お使いのブラウザに翻訳機能がある場合はご利用ください。

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.