LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading 24bit WAV from MatLab

Hello,
 
I have generated 24bit WAV files in matlab using wavwrite() [which saves 24 bit type 1 integer PCM].
 
When I read them using the LabView VIs (Sound File Read Simple.vi for example), the loaded values are not the same as in MatLab.
 
I played around with forcing the polymorphic Sound File Read.vi to be either DBL or I32, but didn't have much luck.
 
Does anyone have an example of dealing with 24bit WAV files (or suggestions)?
 
 
(Aside: in Matlab, 32bit WAV files are saved as type 3 normalized floating point; can LabView functions deal with that yet?)
 
Thanks in advance,
Frenk
0 Kudos
Message 1 of 4
(3,629 Views)

Hello,

Little bit of extra info...

I just tried loading 24 bit and 32 bit WAV files using MathScript in LabView (wavread). The data gets distorted in the same way as using the LabView sound VIs mentioned above.

If I use that same script (wavread) in MatLab itself, the data looks fine.

Very strange.

Frenk

0 Kudos
Message 2 of 4
(3,625 Views)
Hello Frenk,
 
This was actually a bug (CAR # 40HE1SMQ) that was fixed in LabVIEW 8.2.1.  If you are a SSP subscriber, you can download the update at the Services Resource Center.
 
Have a great weekend!
 
Janell R | applications engineer
0 Kudos
Message 3 of 4
(3,606 Views)

Thanks for the information. I upgraded and the problem is solved.  🙂

Best,

Frenk

0 Kudos
Message 4 of 4
(3,567 Views)