Skip to Main Content Skip to Search
Accelerating the pace of engineering and science

 

Data Acquisition Toolbox

Product Description

Accessing Subsystems of a DAQ Device

The toolbox provides functions to access four subsystems commonly found on DAQ hardware: analog input, analog output, digital I/O, and counter/timer. Depending on your application and hardware, you use either the legacy or session-based interface to communicate with the hardware.

Legacy and Session-Based Interfaces

 The legacy interface supports hardware from multiple vendors and all sound cards on 32-bit versions of MATLAB. (You can use this version of MATLAB on either 32-bit or 64-bit versions of Windows.) The legacy interface also supports voltage measurements of analog input, analog output, and digital I/O subsystems.

Setup for a data acquisition and analysis session using the legacy interface

Setup for a data acquisition and analysis session using the legacy interface. Data Acquisition Toolbox enables MATLAB or Simulink to interface with the data acquisition boards, such as sound cards.

The session-based interface supports analog input, analog output, and counter/timer subsystems on both 32-bit and 64-bit versions of MATLAB. This interface supports National Instruments hardware that can perform a wide variety of measurements such as voltage, current, temperature, IEPE accelerometer, and bridge measurements.

Sample code that uses the session-based interface.

Sample code that uses the session-based interface. Data Acquisition Toolbox enables MATLAB to discover and interface with data acquisition devices such as the NI 9205 CompactDAQ module.

In either interface, you create device or session objects to provide a gateway to the hardware's functionality and to control the behavior of your acquisition. For example, you can execute any supported analog input task via an analog input object created in MATLAB or Simulink.

By adding channels or lines to your device or session object, you can synchronize the collection of your data. The toolbox supports an unlimited number of channels or lines, enabling you to use as many as your hardware permits.

Analog Input

Analog input functions let you acquire signals from your hardware. You can create an analog input object, add channels to the object, acquire data to memory, read data into the workspace, and preview the most recently acquired data.

Analog Output

Analog output functions let you send signals out from your hardware. You can create an analog output object, add channels, queue data sets for output, and generate analog signals.

Digital I/O

Digital I/O functions enable you to generate or read digital signals using your hardware. You can create digital I/O objects, add lines, send data to the hardware, and read data into the workspace. You can use digital I/O functions with the legacy interface only.

Counter/Timer

Counter/timer functions let you access counters on data acquisition hardware. You can configure counters as input or output channels. Counters configured as inputs can count events and measure frequency, pulse width, and position; counters configured as outputs can generate pulse trains.

MATLAB code used to acquire data from a DAQ device with counter/timer channels

MATLAB code used to acquire data from a DAQ device with counter/timer channels.

Contact sales
Free technical kit
Trial software

Get Pricing and
Licensing Options