How can I Programmatically find all the Physical Channels for a DAQmx Task?

Updated Jun 12, 2018

Reported In

Software

  • LabVIEW

Issue Details

How can I programmatically list all the physical channels associated with my DAQmx task in LabVIEW?
 

Solution

In order to programmatically find all the physical channels associated with your DAQmx task, you can perform the following steps:
  1. Place a DAQmx Task property node on the block diagram to return an array of virtual channels associated with your task.
  2. Place a For Loop on the block diagram to auto index the returned channels.
  3. Place a DAQmx Channel property node within the For Loop and select the Active Channels property.
  4. Pass the virtual channel names one by one to the DAQmx Channel property node to set the Active Channels (ActiveChans) property.
  5. Wire the Physical Channel Name (PhysicalChanName) output property to return the channel name.
  6. Auto-index the array to build an array of channel names.
An example of these steps can be found below.

WAS THIS ARTICLE HELPFUL?

Not Helpful