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

addAnalogInputChannel Add analog input channel
inputSingleScan Acquire single scan from all input channels
startForeground Start foreground operations
startBackground Start background operations
removeChannel Remove channel from session object
addlistener Create event listener
stop Stop background operation
wait Block MATLAB until background operation completes

Events

DataAvailable Notify when acquired data is available to process
ErrorOccurred Notify when device-related errors occur

Properties

Coupling Specify input coupling mode
Device Channel device information
ID ID of channel in session
MeasurementType Channel measurement type
Range Specify channel measurement range
ScansAcquired Number of scans acquired during operation
TerminalConfig Specify terminal configuration

Accelerometer, IEPE, and Microphone

ExcitationCurrent Voltage of external source of excitation
ExcitationSource External source of excitation
MaxSoundPressureLevel Sound pressure level for microphone channels
Sensitivity Sensitivity of an analog channel

Bridge

BridgeMode Specify analog input device bridge mode
ExcitationVoltage Voltage of excitation source
NominalBridgeResistance Resistance of sensor

Current

ShuntLocation Indicate location of channel's shunt resistor
ShuntResistance Resistance value of channel's shunt resistor

RTD

ExcitationCurrent Voltage of external source of excitation
ExcitationSource External source of excitation
R0 Specify resistance value
RTDConfiguration Specify wiring configuration of RTD device
RTDType Specify sensor sensitivity
Units Specify unit of RTD measurement

Thermocouple

ThermocoupleType Select thermocouple type
Units Specify unit of RTD measurement

Voltage

ADCTimingMode Set channel timing mode

Topics

Basic Workflow

Acquire Analog Input Data

Acquire analog signals from a data acquisition device.

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.

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?