Be the first to rate this file! 11 Downloads (last 30 days) File Size: 2.03 KB File ID: #25898

Real-time DAQ and sound card visualization

by Nizar Ouarti

 

19 Nov 2009

Read analog signal coming from a daq or a sound card. Display the data in real-time or at the end.

| Watch this File

File Information
Description

 Matlab code to read analog signal coming from a daq or from your sound card. This code allows to display the data in real-time or when the acquisition finished.
The real-time visualization method is better for monitoring.
The non real-time visualization method is better for accurate acquisitions.
It is an easy way to monitor or record your data coming from a daq or your sound card. I tried to write the simpler and the more general code possible. There is only one script file with a lot of comments to understand each step.
You can change many parameters like the duration, the number of channels or the type of daq easily.
The variable 'real_time_vis' can be changed to have a real time visualization of your data or not.

Nizar Ouarti 11-2009, France

Required Products Data Acquisition Toolbox
MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
01 Feb 2012 Sen

% Error occurs using winsound:

??? Function 'isrunning' is not defined for values of class 'analoginput'.

Error in ==> Soundcard at 41
    while isrunning(ai) % while ai is running

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
daq Nizar Ouarti 19 Nov 2009 13:45:28
sound card Nizar Ouarti 19 Nov 2009 13:45:28
visualization Nizar Ouarti 19 Nov 2009 13:45:28
realtime Nizar Ouarti 19 Nov 2009 13:45:28
advantech Nizar Ouarti 19 Nov 2009 13:45:29
winsound Nizar Ouarti 19 Nov 2009 13:45:29
keithley Nizar Ouarti 19 Nov 2009 13:45:29
mcc Nizar Ouarti 19 Nov 2009 13:45:29
nidaq Nizar Ouarti 19 Nov 2009 13:45:29
hpe1432 Nizar Ouarti 19 Nov 2009 13:45:29
sound card hur 26 Jul 2011 20:05:57

Contact us at files@mathworks.com