LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to convert raw data to wav files??

Hi AnyOne,
Can anyone know how to do convert raw data in hex format into wav file format??
Please show some guideline.
Thank You.
0 Kudos
Message 1 of 6
(12,808 Views)
The wav file format has header information for sampling rate and other parameters as well as data information.  You would have to construct this header and the data chunks according to the standard.
 
This post and its included link gives more information on the specific guidelines for this.
 
Regards,
 
Craig D
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(12,788 Views)
Hi Craig,
Thanks for the reply.
I do follow according the the wav creation standard and save it as wav file. However, i still fail to read back the wav file.
I using LV8.2. Attach with my testvi and data. Please guide if i make any mistake in my testvi
 
Thx and Regards,
Simon76     
 
Download All
0 Kudos
Message 3 of 6
(12,778 Views)
How is it not working?  Is it giving you an error?  What happens when you try to play a known wave file back?
 
Odds are something is wrong with your formatting.  This KnowledgeBase article should point you in the right direction.  You may also find this forum post helpful.
 
Regards,
 
Craig D
Applications Engineer
National Instruments
 
 
0 Kudos
Message 4 of 6
(12,727 Views)

Hi Crag,

It keep to increase the wave file size when everytime overwrite it. No error display.

I able to create dll from vc++ to convert .bin file to wave file and used with labview to display the signal wave. However, i still scracth my head how to convert the hex data format (get from serial port)  and save it as bin file. Any useful link or articles that i can refer to ??

I check the forum that refer to and unable to run it as missing snd write wave file RHP.vi. Where can i get this vi ??

Thx and Regards,

Simon76

0 Kudos
Message 5 of 6
(12,689 Views)

Simon76,

In terms of converting the data from hex to binary, this shouldn't be that bad.  Please check this link and this one too for more information.

Regards,

Craig D
Applications Engineer
National Instruments

0 Kudos
Message 6 of 6
(12,669 Views)