09-03-2010 10:12 AM
I am trying to create a white noise sound file.
100 Hz to 8000 Hz 100ms long with a 10 ms ramp up and 10 ms ramp down.
I have been able to create the signal and sound in this vi.
The problem is, I can only get a file as short as 500 ms. I did this by changing the simulate signal options selecting 8000 samples at 16000 Hz.
If I select 1600 samples (the number of samples needed for 100 ms) some error occurs in the writing process, and the file thinks it's still open by labview. If I close labview, the file still does not work. How can I do what I need to do? Why can't I just reduce the number of samples to 1600 and get a 100 ms long waveform?
09-03-2010 11:16 AM
I could not reproduce your problem. It work for me. Somewhat strange
09-03-2010 01:06 PM
what settings did you use to make the simulate signal work, to produce a 100 Hz long wav file?
I could produce the sound, but the file didn't work for some reason.
09-05-2010 10:47 AM
All sound cards support 44100 Hz sample rate. But are you sure your sound card support 16000. Sound card used to be more flexible regarding sample rate before. But modern sound card may only support a few different samplerates. Check with your manual, or just use 44100 Hz in a test
09-06-2010 11:48 PM
It works when the number of samples is 8000 and the sample rate is 16000, I need it to work with the settings set to 1600 for the samples, and 16000 for the rate.
09-06-2010 11:48 PM
Sound card produces all sounds just fine, it's the file writing process that isn't working
09-07-2010 06:13 AM
The Labview sound system is something that NI do not care much about. They actually neglect it. Errors reported in version 8.6 are still not fixed in Version 2010. And if they fix errors you can be sure some new errors will be introduced. What you can try to do is using the old sound system (used in 7.x) for writing your data to file. In your case it should have much to say. You will find the old sound system here ..\National Instruments\LabVIEW 20xx\vi.lib\sound\sound.llb