Analog Data Acquisition

Configure analog input channels and acquire data from your device

Before you use analog input channels, see Hardware Discovery and Session Setup.


addAnalogInputChannelAdd analog input channel
inputSingleScanAcquire single scan from all input channels
startForegroundStart foreground operations
startBackgroundStart background operations
removeChannelRemove channel from session object
addlistenerCreate event listener
stopStop background operation
waitBlock MATLAB until background operation completes


DataAvailableNotify when acquired data is available to process
ErrorOccurredNotify when device-related errors occur


Analog Input RecorderAcquire and visualize analog input signals


Basic Workflows

Acquire Data in the Foreground

Acquire data from a device while MATLAB® waits.

Acquire Data in the Background

Acquire data from a device while MATLAB continues to run.

Getting Started Acquiring Data with Digilent® Analog Discovery™

This example shows how to acquire analog input voltage data at 300 kHz.

Generate and Measure Signals with Analog Devices ADALM1000

Program a session for ADALM1000 input and output.

Tools Workflows

Acquire Data with the Analog Input Recorder

Use the Analog Input Recorder app to visualize and record analog input signals.

Multiple Channels and Measurement Types

Acquire Data from Multiple Channels

This example shows how to acquire data from multiple channels, and from multiple devices on the same chassis.

Acquire Data from an Accelerometer

This example shows how to acquire and display data from an accelerometer attached to a vehicle driven under uneven road conditions.

Acquire Bridge Measurements

This example shows how to acquire and plot data from an NI USB-9219 device.

Acquire Sound Pressure Data

This example shows how to acquire sound data from an NI 9234.

Acquire IEPE Data

This example shows how to acquire IEPE data using an NI 9234.

Acquire Data and Generate Signals Simultaneously

Acquire and generate data at the same time.

Featured Examples