LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I open a WAV file in LabVIEW 7?

I need to make a program that opens a WAV file and converts it into amplitudes values and saves the in a .txt file. But how can I make LabVIEW 7 open up a WAV file? It's probably easy, but I didn't come up with anything up to now!
 
Thanks in advance!
0 Kudos
Message 1 of 11
(4,397 Views)
try this
 
regards
timo
---
Message 2 of 11
(4,365 Views)

sorry, didn't work

the .txt was created, but it was blank

 

thanks!

0 Kudos
Message 3 of 11
(4,328 Views)
well, i use LV 7.1 & WinXP and creates a txt file with values
 
try to use the VI with different wavs
play around with the parameters
 
regards
timo
---
Message 4 of 11
(4,323 Views)

Ok, I'll try that!

 

Thanks!

0 Kudos
Message 5 of 11
(4,320 Views)
Hi Timo,

I'm using LabVIEW 7.1.1 and WinXP, for me also, the text file is created but empty...
Is it working with files in C\WINDOWS\Media on your computer ??


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 6 of 11
(4,311 Views)
I attached the tada files
---
0 Kudos
Message 7 of 11
(4,306 Views)
Thanks Timo,

It now works Smiley Happy.. I still dont know why it didn't work the first time...

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 8 of 11
(4,302 Views)
It worked here as well, thanks!
 
I still have a problem, though... My .WAV file is 30 seconds long, and I only want the first 3 sec of data to be written in the text file! Can this be done? I made the program stop after n number of iterations but it didn't work, the file was still acquiring all the data!!
0 Kudos
Message 9 of 11
(4,281 Views)
Hi,
my suggestion:
after reading the wav file => write the information in an array => resize the array => write to file
 
regards
timo
---
Message 10 of 11
(4,269 Views)