LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sound Input Read Spectrum Analyzer

I am working on a project with Arduino to do a spectrum analyzer. The LVIFA part of it is working fine.

The part that I am struggling with is the audio input.

 

I am using the Sound Input Pallet.
My troubles are two-fold.

 

1. A single read takes quite some time and I need to have a pretty quick response. I decreased the samples per read and came up with problem #2.

2. I can get one read out of the Sound Read In and then the VI locks up. I have my timeout set to 1 Sec and it never times out. I have to restart LabVIEW.

 

While it would be nice to have this VI working, I'm not even sure that I am using the correct tool. If I am going to be running an audio spectrum analyzer display off of the data input, I need to response to be within a few mS (ie. <200) so that it looks visually correct.

 

If this library will not achieve this, then I need to look into a different tool.

0 Kudos
Message 1 of 8
(4,386 Views)

Alright I found an example that got me going..

I missed it the frist time around. Basically, if you send the DLL values that it deosn't like ie. sample rate too high/low it will lock up indefinately and I have to close out of LabVIEW.

 

Now I  am using the Sound and Vibration toolkit and I think that I am a bit over my head.

I'm looking to get an output that you would see on an equalizer display

ie. 'buckets' representing a frequency range and the bar levels would change based on the frequency content in that 'bucket'

 

I'm hoping somebody with more experience than me can point me in the right direction and in the mean-time, I'm just going to play with all of the different VIs in the SV toolkit (WOW there is a lot) and see what I can get.

 

0 Kudos
Message 2 of 8
(4,358 Views)

Ok I got it.

I wanted an octet on an XY graph with dB off and Logrithmic scaling on X and Y.

If anyone else attempts this, this is what you want.

0 Kudos
Message 3 of 8
(4,354 Views)

Hey There,

Could youy point me to the example? I would like to generate an Spectrum from the Audio Input/Mic Input myself.

Thanks in advance

Y3G

0 Kudos
Message 4 of 8
(4,266 Views)

I don't have it readily available now but I used NI's example finder. If you open LabVIEW and go to Help->Find Examples

 

If you can't find it, I'll dig through it tonight and find it for you.

0 Kudos
Message 5 of 8
(4,249 Views)
Hi,
Thanks. I have found many examples with whom I experimenting right now. I could put hands on myself on an ardiuno today and will start experimenting the next days. If you have some advise, i'll be happy to hear.
BR
0 Kudos
Message 6 of 8
(4,231 Views)

Hi,

I have a similar project, actually I am using a Audio frequency range as input to the Arduino and do an FFT to receive the spectrum out of it.

See the YOUTUBE video I did and the code in *.jpg. I took actually the Continous Input example and modified it.

Hope that helps.

Keep me posted, since we might work on a same project.

http://youtu.be/aqzyofQHXDM

Y3G

 

 

Download All
0 Kudos
Message 7 of 8
(4,186 Views)

Hi Y3g, could upload your VI im workin in a similar project and would like to analize it better. Thanks

0 Kudos
Message 8 of 8
(4,143 Views)