Example Code

NI-DAQmx Channel List String to Array of Channels

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • Data Acquisition (DAQ)

    Software

  • LabVIEW

    Driver

  • NI DAQmx

Code and Documents

Attachment

Overview

This VI shows how to use this handy converter to create a dummy task and extract the channel list in array format.

 

Description

You may find a need to extract the individual channels from a task that was made by using some sort of short-hand syntax. (What is the Syntax for Physical Channel Strings in DAQmx?

 

 

Requirements

Software

  • LabVIEW 2012 or compatible
  • NI-DAQmx 9.5.5 or compatible

Hardware

  • NI Multifunction DAQ Device

 

Steps to Implement or Execute Code

1. Open VI
2.Select physical channel
3.Run the VI.

 

 

Additional Information or ReferencesdaqmxChanListToArray.png

**This document has been updated to meet the current required format for the NI Code Exchange.**

---

Peter Flores
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.