LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sound Generator Amplitude

Solved!
Go to solution

Hi all,

I send et sine waveform to the speaker. If I change the frequency, the sound changes consequently however changin the amplitude dont changes the sound. how to do to change the sound amplitude. I need to process sounds with filters and amplifiers.

Thanks

0 Kudos
Message 1 of 7
(4,316 Views)
You'll have to post code to see your exact problem, but amplitude is the height of the waveform.  If you're generating the sinewave, then use a different AMPLITUDE parameter.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 2 of 7
(4,308 Views)

I need to controlthe frequency and the dB sent to the speaker. when changing frequency on VI, the sound changes. when changing amplitude no changes accures about what I hear:

sound.png

0 Kudos
Message 3 of 7
(4,283 Views)

neil84 wrote:

I need to controlthe frequency and the dB sent to the speaker. when changing frequency on VI, the sound changes. when changing amplitude no changes accures about what I hear:

 


You can not control the dB level the way you are trying to do it. Take a look here for an introduction regarding dB http://www.phys.unsw.edu.au/jw/dB.html.

Also then using the a DBL as type for sound output. The wave is normalized to +/- 1 in amplitude. I will recommend that you do not use Express VIs. Study instead the Labview examples for sound output and input



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
(4,274 Views)

Hi,

I looked to the examples. there is some example where is possible to set volume. However there is no information about what sound level is sent.

My aim is to send a specific frequency and sound leve to the speaker ( W/m2).

Actually for  simulation 'm doing this:Sans titre.png

to convert dB to Acoustic level and I need to send this specific level to the speaker

0 Kudos
Message 5 of 7
(4,265 Views)
Solution
Accepted by topic author neil84

neil84 wrote:

Hi,

I looked to the examples. there is some example where is possible to set volume. However there is no information about what sound level is sent.

My aim is to send a specific frequency and sound leve to the speaker ( W/m2).

Actually for  simulation 'm doing this:

to convert dB to Acoustic level and I need to send this specific level to the speaker


Please trust me on this one. There are no standardized formats regarding sound card and amplifier systems/speaker system output levelSo you can not take a random system and have it to output a some standard sound output level in W/m2. The only way you can do this, is to calibrate your system with some sound level measurement equipment



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
Message 6 of 7
(4,253 Views)
I found the way to process and amplify soud in labview: by multiplying in fourier space
0 Kudos
Message 7 of 7
(4,201 Views)