Example Code

NI-DAQmx: Creating an Analog Input Task with Multiple Measurement Types in LabVIEW

Code and Documents


This sample program demonstrates how to use the NI-DAQmx application programming interface (API) to create a single NI-DAQmx task that can acquire data from several different types of sensors. It reads three different types of analog inputs (voltage, temperature, and strain), but it can easily be modified for other sensor types.

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