This example demonstrates the procedure required to apply different NI-DAQmx custom scales to each virtual channel in a task using NI-DAQmx with support for LabVIEW NXG.
In this example, a DAQmx Task property node is used to obtain the respective task's virtual channels and store them in an array. A for loop then iterates through the array and a DAQmx Channel property node is used to create a custom scale for each virtual channel. With these scales configured, a finite acquisition is implemented and the scaled channels are plotted.
Hardware and Software Requirements
LabVIEW NXG 1.0 or compatible
NI-DAQmx 17.0 or compatible
A supported NI DAQ device capable of performing analog input measurements
Steps to Implement or Execute Code
Download the contents of the attached ZIP file and run the Multiple Scales in DAQmx GVI. The user will need to specify his or her DAQ device's physical channels, appropriate timing parameters, and the desired scaling parameters.
Additional Information or References
Ross S. Applications Engineering National Instruments
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.