필터 지우기
필터 지우기

USING DAQ TOOLBOX TO ACQUIRE MICROPHONE ARRAY DATA USING NI USB 9234

조회 수: 1 (최근 30일)
HARITHA
HARITHA 2012년 2월 10일
답변: Vinh Dang 2015년 3월 5일
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
  댓글 수: 1
Atiqah Selamat
Atiqah Selamat 2013년 6월 12일
hi
how you take out data from your recording? I also have problem with that
tq

댓글을 달려면 로그인하십시오.

답변 (2개)

Manisha
Manisha 2012년 2월 13일
Hi Haritha,
NI 9234 has built-in IEPE excitation circuitry. Is your microphone IEPE compliant?
If yes, you can use the new feature added in session based interface for your microphone. R2012a pre-release has added a new specialized measurement type called 'Microphone'. This will turn on the IEPE excitation on your device and thus return meaningful results
You may need to modify the following code:
s = daq.createSession('ni');
s.addAnalogInputChannel('Dev1', 0, 'Microphone');
s.Channels.Sensitivity = 0.037; %Set the microphone's Sensitivity to the value specified in the sensor's data sheet in v/Pascals.
[data,time] = s.startForeground();
Hope that helps,
Manisha
  댓글 수: 2
HARITHA
HARITHA 2012년 2월 13일
Thanks a lot for your reply.
Yes, my microphone is IEPE compliant.
Can I do it with R2011b version of MATLAB which has version 3.0 DAQ toolbox?
Thanks,
Haritha
Atiqah Selamat
Atiqah Selamat 2013년 6월 12일
i am using this code but do not how to check where it did save my recording.

댓글을 달려면 로그인하십시오.


Vinh Dang
Vinh Dang 2015년 3월 5일
Hello, In my application, I have a cDAQ configuration with AI modules 9234 (for accelerometers), 9237 (for pressure and load cell) and 9215 (for proximity and temperature). All modules are put in one chassis cDAQs-9178. What is the valid sampling rate for this?

카테고리

Help CenterFile Exchange에서 Simultaneous and Synchronized Operations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by