File Exchange

image thumbnail

Data Acquisition

version (719 KB) by Isaac Noh
This app allows a user to interactively configure/control their data acquisition devices.


Updated 09 Mar 2021

View Version History

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

This app is a quick way to get up and running with the Data Acquisition Toolbox. The app allows a user to quickly discover, connect to, and control their data acquisition card from MATLAB without prior knowledge of the programming interface to Data Acquisition Toolbox. The app provides an easy to use interface to your data acquisition card and allows you to visualize results and save them to a MAT-file. It also allows the user to generate MATLAB code from the interactive work done with the app, which the user can use to automate their data acquisition process, as well as, learn the programming interface from a relevant working example.
- Support for audio/analog input, audio/analog output, and non-clocked digital I/O.
- Save captured data to MAT-File (File menu)
- Generate MATLAB code from interactive work (File menu)
- Supports 32-bit and 64-bit Windows versions
- Supports both the legacy interface and the session-based interface.
Note: Audio support for 64-bit Windows begins in R2014a and requires the Direct Sound HW Support Package (free download via MATLAB's "Add-Ons" button).

Cite As

Isaac Noh (2021). Data Acquisition (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (19)

bo ru Chao

It helps a lot.Thanks.

James Lehfeldt

hassan talat

I am unable to read more than one counter inputs. I have 3 position encoders attached with NI USB DAQ 6343. But only one encoder output is seen. Can i get more than one counter inputs or is it not supported ?


Great potential, but I'm getting this using a new cDAQ-9171 and NI9234 for accelerometer in Matlab R2018a

Error using populatePropertiesTab
The 'ADCTimingMode' property is not supported by the channel 'cDAQ1Mod1/ai0'.

Firas Ben Abid

Paul Masih Das

wenbin feng

Vitali Walter

Is it posible to get or to check out the code of this app? I`ve tryed earlier to programm such tool by my self but failed. It would be a good example to work on other GUI`s.

shixiong yu


出错 dataAcqTool_export>dataAcqTool_export_OpeningFcn (line 111)

出错 dataAcqTool_export>gui_mainfcn (line 2874)

出错 dataAcqTool_export (line 42)

出错 DAQmain (line 4)

出错 DataAcquisitionApp/startApp (line 58)

出错 DataAcquisitionApp (line 37)

出错 appinstall.internal.runapp>execute (line 75)
out = evalin('caller', [script ';']);

出错 appinstall.internal.runapp>runapp13a (line 57)
outobj = execute(fullfile(appinstalldir, [wrapperfile

出错 appinstall.internal.runapp>runcorrectversion (line 35)
appobj = runapp13a(appinstalldir);

出错 appinstall.internal.runapp (line 17)
out = runcorrectversion(appmetadata, appentrypoint,

can not work in 2014a

Ornob Hasan Shuvo

how about matlab 2016?
it doesnt work on it. What should i do?

Sergey Makovkin

What about synchronizing Analog Output generator channel and Analog Input channel on one plot?

Sergey Makovkin

Bernardo H. Murta

Couldn't learn better and faster to control NI interfaces without this MATLAB code generation.

Thank you a lot!


Fantastic app!! It works in a few clicks but was using USB6001 had problem at first instant. This link solved the problem

Thanks a mil!!

Or Hirshfeld

it's great stuff, thank you very much.
helped me to finish my project

if you have problem connectiing to NI try to install offical NI matlab support

this installtion only worked for me on matlab 2013+


All I seem to be getting from the download is a license file.

Isaac Noh

The data save issue has been fixed.


Hey, Is there any way I can save the data using this app, I'm using mydaq from NI and every time I try to save the data after I collect it I got this error :
Error while evaluating uimenu Callback

Cell contents reference from a non-cell array object.

Error in cell2mat (line 43)
cellclass = class(c{1});

Error in C:\Users\Amin
(line 1924)

Error in C:\Users\Amin
(line 2704)

Error in C:\Users\Amin
(line 42)

Error in C:\Users\Amin
(line 2569)

Error while evaluating uimenu Callback

MATLAB Release Compatibility
Created with R2013b
Compatible with R2013b to R2015b
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!