Where Is The Example of MATLAB® Data Acquisition Toolbox™?

Updated Dec 17, 2019

Reported In


  • NI-DAQmx


  • MathWorks MATLAB®
  • Data Acquisition Toolbox for MATLAB®

Issue Details

  • How can I find the examples of MATLAB®data aquisition using NI hardware?
  • Where is the example documentation to refer?


To use NI hardware with MATLAB®, you need to install the Data Acquisition Toolbox™. For the examples of the Data Acquisition Toolbox™, please refer to this link. Data Acquisition Toolbox — Examples
There are about 50+ examples that you can refer to. To open the example at MATLAB®, please follow the steps below:
  1. Select the example that you want to use on that page.
  2. Click the View MATLAB Command that is placed at the right-top of the example page like below.

  1. Paste the command. For example, if you select Getting Started with NI Devices example, the corresponded command is below.
  1. Run the command by entering it in the MATLAB®Command Window. Web browsers do not support MATLAB®commands.

Or you can find the examples at MATLAB program.
  1. Press F1 to open the Help.
  2. Click the Examples at the top of windows.
  3. Select Data Acquisition Toolbox at the Category.
  4. Then, you can see the list of available examples. 

Additional Information

Data Acquisition Toolbox™ provides apps and functions for configuring data acquisition hardware, reading data into MATLAB® and Simulink®, and writing data to DAQ analog and digital output channels. The toolbox supports a variety of DAQ hardware, including USB, PCI, PCI Express, PXI, and PXI-Express devices, from National Instruments and other vendors.

The toolbox apps let you interactively configure and run a data acquisition session. You can then generate equivalent MATLAB® code to automate your acquisition in future sessions. Toolbox functions give you the flexibility to control the analog input, analog output, counter/timer, and digital I/O subsystems of a DAQ device. You can access device-specific features and synchronize data acquired from multiple devices. 

Please refer to this link for more detail about Data Acquistion Toolbox™. Getting Started with Data Acquisition Toolbox