LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you save audio in as a .wav with myRIO?

I'm utilizing a high throughput FPGA personality for audio in and I'm able to pick up waveforms on a graph but I am unable to save the data into a .wav file. I am able to save a .wav file but it's empty (0 seconds). 

 

The goal of the design is to have a microphone pick up audio for 5 seconds and then save the audio into a .wav file on the myRIO.

 

The issue seen is that the audio isn't being saved properly. The current method is to use the build waveform component after the audio in and then pushing it into the write waveforms to file component. 

Download All
0 Kudos
Message 1 of 2
(2,609 Views)

Hi toeknee,

 

Can you try moving the Write Waveform to File.vi outside the While loop? The way it is working now, it is writing to test1.wav every single cycle of the while loop. So, if you wait for the 4 seconds (Time elapsed VI) to finish and only write to the file after you are done building your waveform, you should get the full waveform you're expecting.

 

Let me know if that helps!

Timothy D.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(2,504 Views)