From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

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

Code and Documents

Attachment

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.

Contributors