LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I have sign with 25,6KHz sampling frequency and I need to create a 22,05KHz WAV file of this sign. Does anybody know how can I do it?

I have a data file of a NI-4552 board´s acquired sign with 25,6KHz sampling frequency and I need to create a 22,05KHz WAV file of this sign. The path that I took initially was to resample the sign stored through interpolations in "small packages" to create a resampled sign with desired delta t to be able to create the WAV file. I don´t know if it is the best solution... Does anybody know another one?
0 Kudos
Message 1 of 4
(2,925 Views)
I have attached "Curve Interpolator.vi". You feed it with
an arbitrary waveform and the number of point you want.
It returns an interpolated waveform with the required
number of points using spline interpolation VIs.

Enjoy.

Jean-Pierre Drolet


"Oberdiek" a écrit dans le message news:
5065000000080000002C1C0000-986697009000@quiq.com...
I have sign with 25,6KHz sampling frequency and I need to create a
22,05KHz WAV file of this sign. Does anybody know how can I do it?

I have a data file of a NI-4552 board´s acquired sign with 25,6KHz
sampling frequency and I need to create a 22,05KHz WAV file of this
sign. The path that I took initially was to resample the sign stored
through interpolations in "small packages" to create a resampled sign
wi
th desired delta t to be able to create the WAV file. I don´t know
if it is the best solution... Does anybody know another one?



[Attachment Curve Interpolator.VI, see below]


LabVIEW, C'est LabVIEW

0 Kudos
Message 2 of 4
(2,925 Views)
From my understanding, the Snd Write Wave File VI has all of the functionality you need. This VI is located in the Graphic & Sound functions palette.

The Snd Write Wave File VI takes in a 1D array of data for mono sound, and a 2D array array for stereo sound. The speed of playback is specified in the "sound format" input, and is independent of sampling frequency.

So in your case, you can just tie your data array that you acquired from the 4552 (U8 or U16 format) into the appropriate array input, and specify the playback speed to be 22050. This will create the WAV file you need.
0 Kudos
Message 3 of 4
(2,925 Views)
Playing back a sound at 22050 Hz that was acquired at 25600Hz will not accurately portray the frequency information in that sound.The Snd Write Wave File VI does not "know" that the file you feed it may have been acquired at something different than the 22.05 kHz that you specify.
0 Kudos
Message 4 of 4
(2,925 Views)