Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best way to save sound signal data?

I have the NI USB-9233 DSA interface with labVIEW 8.5 and the Sound and Vibration Toolkit Version 5.0.  I am aquiring a sound signal from a microphone at a sample rate of 50k.  My goal is to save this data to a file in such a way that I can reload it to run comparitive Power Spectrum FFT and octave band plots. The duration of the recording time could be anywhere from 5 sec to 30 sec. What is the best format to save the data in, ASCII, WAV, UF558? 
 
Scott
0 Kudos
Message 1 of 8
(8,865 Views)
Hi Scott,

There certainly are a number of ways to store your information. Since the files you are writing are not especially large (2-12 Mb), you don't have to be too concerned with file size. I recommend using the following two example files used to write and read .WAV files.

SVXMPL_WAV Recorder (DAQmx).vi
SVXMPL_WAV Power Spectrum.vi


These examples can be found in the LabVIEW's Example Finder under

NI Example Finder » Toolkits and Modules » Sound and Vibration » File Input and Output » ...
Best regards,

Jordan D
Applications Engineering
National Instruments
0 Kudos
Message 2 of 8
(8,848 Views)
I've looked at the wav recorder and my concern starts within the sound write waveform vi.  I know the vi is scaling the signal, but I can't follow exactly what's it's doing.  When I've tried to step into the vi, I've been only able to step over it.  I've attached a word document with a picture that points to where I'm getting lost.  Basically, I don't mind if the signal is scaled/amplified, but I do need to know what that gain is and that it need is constant test to test so that when I start comparing tests, I know how to scale it to decibel units.
 
Thanks,
Scott
0 Kudos
Message 3 of 8
(8,841 Views)
Hi Scott,

You are correct in thinking that the AI Max/Min are taken from the front panel of the Wave Recorder VI. These values are passed into the task inside the svx_DAQmx Get Info VI. There isn't any scaling performed in this VI. Keep me posted if you have more questions.
Best regards,

Jordan D
Applications Engineering
National Instruments
0 Kudos
Message 4 of 8
(8,816 Views)

I don't have it installed apparently so I need the sound and vibration toolkit. Does that cost money and how do I install it.

 

Thanks

0 Kudos
Message 5 of 8
(7,978 Views)

Hi Oli Oli Oxin Free,

 

Here is a link to the Sound & Vibration Product page.  It is not free.  On this page there is a link to evaluating the software which will guide you through the installation process.

 

If you would like I can get you in touch with a sales representative about purchasing this. 

 

Please let me know if you have further questions!

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 6 of 8
(7,962 Views)
You can evaluate the Sound and Vibration Measurement Suite 7.0 for 30 days before making a purchase. During the evaluation period, the evaluation license allows full use of the product. We would appreciate your feedback and, hopefully, your business Smiley Happy.
Doug
NI Sound and Vibration
0 Kudos
Message 7 of 8
(7,956 Views)

I have read somewhere that WAF does not maintain the gain of the signal. I am not sure about this, but maybe you should be careful there.....

 

Seems that TDMS is a preferred file format for dynamic signals. I have only very recently started to use it with LV 8.6, but is seem to be quite useful.

 

Cheers

 

Gerd

 

0 Kudos
Message 8 of 8
(7,567 Views)