The present Matlab codes are data acquisition examples, which concern the generation and measurement (queue and acquisition) of (audio) signals with Matlab Data Acquisition Toolbox using both the Legacy and Session-Based interface and both the Sound Card and NI DAQ (NI USB-6211) hardware. In the examples is shown how to:
- prepare the analog output(s) and input(s);
- simultaneously queue and acquire data;
- log the results into data .txt data file.
The codes are based on the theory described in:
 Data Acquisition Toolbox User’s Guide.pdf. The MathWorks Inc, 2014.
 Data Acquisition Toolbox User’s Guide.pdf. The MathWorks Inc, 2016.
 NI USB-621x Specifications.pdf. Austin, National Instruments, Corp., 2009.
A new version of the codes has been uploaded.