LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sound input to boolean

Hello I'm very new to labview and I'm trying to learn how I can trigger off certain LED's at 2 different volumes of sound. Normal volume will trigger green LED and loud will trigger red LED, no sound doesnt trigger any LED. I'm not quite sure where to start but I will attach what I had thought of.

0 Kudos
Message 1 of 4
(2,657 Views)

Are you talking about hearable sound?

If so, simply taking some amplitude level analysis might not be sufficient.

 

There is a "Sound Level" express VI available in the , which is suitable to determine e.g. sound pressure. This is by far more accurate than taking a amplitude.

Otherwise, you might want to implement some algorithm for sound pressure determination.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 4
(2,589 Views)

@Norbert_B wrote:

Are you talking about hearable sound?

If so, simply taking some amplitude level analysis might not be sufficient.

 

There is a "Sound Level" express VI available in the , which is suitable to determine e.g. sound pressure. This is by far more accurate than taking a amplitude.

Otherwise, you might want to implement some algorithm for sound pressure determination.

 

Norbert


Measuring sound pressure seems like a much better way than the amplitude level I've been using. Problem is I am using a mydaq box to input the sound from a microphone. Whenever I open up the daqassistant and try to use sound pressure , it does not recognize my device

0 Kudos
Message 3 of 4
(2,573 Views)

There are specific devices for measurement of sound and vibration. They are called Dynamic Signal Acquisition (DSA) devices.

Esp. sound has some "weird" behavior (e.g. "Octaves") which make it hard for analysis if you use standard sample rates like 1kHz.

 

That being said, if working with a MyDAQ you have to collect all data and create a set of data compatible to sound&vibration measurements. Then you could use the mentioned function if you have access to the sound and vibration analysis toolkit.

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(2,519 Views)