To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example illustrates how an array of DAQmx Task Name/DAQmx Global Channel/Resource Name can easily be converted to an array of string and then subsequently back to the original array.
Description
Observe the VI Block Diagram. There are essentially two tasks: one which converts an array of Resource Name to an array of string and back; and another which performs a similar task for a DAQmx Task Name. This technique will work for any such resource name. Notice the array constant of resource name to the left of the Block Diagram.Notice that the array of resource name is firstly converted into an array of string. This would facilitate the process of making programmatic changes to the items in the array.Notice that this array of string is then converted back to the original array of resource name. This array of resource name can then be passed to the appropriate driver function as is demonstrated in the Diagram Disable Structure.
Requirements
Software
Hardware
Steps to Implement or Execute Code
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.