LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to display wav file on graph.

I am recording audio wave file using my sound card and want to display captured wave form on graph control. Can I do that?
I am assuming I have to convert my wav file into array. And I am not sure how to do that.
Thanks in advance for your help.
Sheetal
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 5
(5,554 Views)
Hi,

WAV files contain binary data with a header that defines how this binary data is to be read. Here is an example that will read the data from a WAV file and displays a graph with the results. The data is there stored in an array; from that point you can use it as any CVI data.

Please let me know if you have any questions on this.

Regards,

Juan Carlos
N.I.
Message 2 of 5
(5,554 Views)
Thanks a lot Juan.
This is exactly what I was looking for. Was this part of code library?

Thanks again to you and whole NI support team for quick and accurate support.

Sheetal
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 3 of 5
(5,554 Views)
Sheetal,

This code is not part of the libraries yet, if you feel that this should be a feature included in CVI I would appreciate if you file a request. Just go to http://www.ni.com/contact and select product feedback.

I'm glad this helped.

Juan Carlos
0 Kudos
Message 4 of 5
(5,554 Views)
Hi Juan,
I think in sample code you provided, left and right channel for stereo are switched.

Thanks.
Sheetal
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 5 of 5
(5,554 Views)