File Exchange

image thumbnail

Data Acquisition

version 4.1 (742 KB) by

This app allows a user to interactively configure/control their data acquisition devices.

9 Ratings



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).

Comments and Ratings (13)

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

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

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

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+


Dan (view profile)

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

Isaac Noh

Isaac Noh (view profile)

The data save issue has been fixed.


Ali (view profile)

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



Version 4.1:
• Export data to workspace
• Added digital I/O, and bidirectional channel support
• Support for different clock sources
• Support for unclocked (single-scan) sessions
• Generate a clock signal
• Add counter I/0 support
• Bugs fixes


New version for R2014b and newer (older version still included for R2013b-R2014b).


Version 1.5: Fixed data save issue and other improvements.


Updated description and bug fixes (v1.4)


Bug fixes and added Session Log display


- Updated description


Updated description.


1.04: Bug fixes

MATLAB Release
MATLAB 8.2 (R2013b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Win prizes and improve your MATLAB skills

Play today