Getting Started with NI myDAQ

Code example for acquiring data into MATLAB using myDAQ hardware

You are now following this Submission

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:
www.mathworks.com/products/daq

Cite As

MathWorks Data Acquisition Toolbox Team (2026). Getting Started with NI myDAQ (https://ch.mathworks.com/matlabcentral/fileexchange/40749-getting-started-with-ni-mydaq), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.1

Updated license

1.0.0.0