Thread Subject: Using DAQ toolbox for measuring data from a microphone array using NI USB 9234

Subject: Using DAQ toolbox for measuring data from a microphone array using NI USB 9234

From: HARITHA

Date: 10 Feb, 2012 00:45:36

Message: 1 of 1

Hello,

I am trying to use DAQ toolbox to measure microphone Array data using NI USB 9234.
In LabVIEW, I configure the device using sound pressure measurement mode.
But, I don't know how to do that in MATLAB DAQ toolbox.
My code is:

clc;
clear all;
i=0;
ai=analoginput('nidaq','Dev1');
chan=addchannel(ai,1);

set (ai, 'SampleRate', 1700);
set(ai.Channel, 'UnitsRange', [0 135]); /* tried it in both volts range and db range*/
set(ai.Channel, 'Units', 'dB');

set(ai,'SamplesPerTrigger',inf);
%% start acquisition

start(ai);
    
        while isrunning(ai)
        [data,time]=getdata(ai,1);
        i=i+1;
         data1(i,1)=data;
        end
stop(ai);

Data that's being saved seems to contain only noise. I don't see any sound data i it.

It would be great if someone could tell me how to acquire sound data using the toolbox.

Thanks,
Haritha

Tags for this Thread

Everyone's Tags:

daq

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
daq HARITHA 9 Feb, 2012 19:49:26
rssFeed for this Thread

Contact us at files@mathworks.com