LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sound File not creating from simulate signal

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.

  • Create sound - 8000 hz white noise
  • High pass filter - remove noise below 100 hz
  • ratio window - causes ramps
  • turn back into waveform - why oh why
  • normalize after filtering - for some reason the filtering changes the height of the whole waveform, if you have a solution to this......
  • play back sound
  • write sound to wav file.

 

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?

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
Download All
0 Kudos
Message 1 of 7
(3,249 Views)

I could not reproduce your problem. It work for me. Somewhat strange



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 7
(3,233 Views)

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.

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 3 of 7
(3,225 Views)

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



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 7
(3,194 Views)

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.

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 5 of 7
(3,173 Views)

Sound card produces all sounds just fine, it's the file writing process that isn't working

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 6 of 7
(3,172 Views)

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

 



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 7 of 7
(3,156 Views)