Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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.

Functions

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

Events

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

Apps

Analog Input RecorderAcquire and visualize analog input signals

Properties

CouplingSpecify input coupling mode
DeviceChannel device information
IDID of channel in session
MeasurementTypeChannel measurement type
RangeSpecify channel measurement range
ScansAcquiredNumber of scans acquired during operation
TerminalConfigSpecify terminal configuration

Accelerometer, IEPE, and Microphone

ExcitationCurrentVoltage of external source of excitation
ExcitationSourceExternal source of excitation
MaxSoundPressureLevelSound pressure level for microphone channels
SensitivitySensitivity of an analog channel

Bridge

BridgeModeSpecify analog input device bridge mode
ExcitationVoltageVoltage of excitation source
NominalBridgeResistanceResistance of sensor

Current

ShuntLocationIndicate location of channel’s shunt resistor
ShuntResistanceResistance value of channel’s shunt resistor

RTD

ExcitationCurrentVoltage of external source of excitation
ExcitationSourceExternal source of excitation
R0Specify resistance value
RTDConfigurationSpecify wiring configuration of RTD device
RTDTypeSpecify sensor sensitivity
UnitsSpecify unit of RTD measurement

Thermocouple

ThermocoupleTypeSelect thermocouple type
UnitsSpecify unit of RTD measurement

Voltage

ADCTimingModeSet channel timing mode

Topics

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.

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.

Was this topic helpful?