From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-18-2010 05:43 PM
Hello,
I have NI DAQ 6229BNC. I want to record sound data (using a microphone and amplifier). Please see the attached application I made. I acquire the sound data as voltage using DAQ, then convert it to a waveform. Then I try to save this waveform as *.wav file. The application creates empty '*.wav' file with no data in it. Please help me with this.
thanks you
12-18-2010 06:23 PM
Works just fine for me. The only thing I did was to change the browse options of your path control so I could select a new file before running it the first time.
12-18-2010 06:37 PM
I dont know, but it is still giving me the problem. It creates the file but of '0' bytes, an empty *.wav file.
And how did u change the browse option of the file?
I doubt but do u think it can be the problem?
I am a newbie to the LabView. jst started learning.....and this small prob is making me go crazy.... pls sm one give me the solution...or at-least tell me where I am making mistake.....
12-18-2010 08:24 PM
Right click on the browse button. Select Browse Options.
12-20-2010 04:47 PM
Hi Vinayak,
I've also tested out your file and it seams to work fine and creates a 2KB .wav file. Have you double checked to see if you have DirectX 8.0 or later? You can check this by going to your start menu in Windows and clicking Run... then in the Run dialog box type dxdiag. This should pull up info on your system, one of the stats should be DirectX version.
To run Sound File Write Simple.vi you need DirectX 8.0 or later.
How are you checking the size of your file?
Also, one thing I noticed while looking at your code: You convert an array to a dynamic data type and then back to an array, you can simply just wire the array strait to the Y of the Build Waveform.
<Brian Aswege | Applications Engineering | National Instruments>
12-20-2010 05:39 PM
Thanks Baswege,
I am using windows 7 and my DirectX version is 11. But still code does not work.
Anyway I changed my code and not it seems to be working. Instead of using Sound File Write Simple.vi now I use Sound File write.vi.
09-25-2017 09:32 AM
Can you hear a sound when you replay the saved wav. file?
I hear nothing, but inly some noise.
Thanks
12-11-2017 03:37 AM
thank you it help me