Getting Started with NI myDAQ

Code example for acquiring data into MATLAB using myDAQ hardware
Updated 1 Sep 2016

View License

MATLAB supports NI myDAQ hardware through the Data Acquisition Toolbox. This simple example shows how to setup a DAQ session with myDAQ hardware.
Specifically, the example illustrates how to discover the device, establish a connection with the device, change the sampling rate, change the voltage range and acquire and plot data.

For more information about Data Acquisition Toobox:

Cite As

MathWorks Data Acquisition Toolbox Team (2024). Getting Started with NI myDAQ (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2013a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Updated license