05-07-2015 12:16 AM
Solved! Go to Solution.
05-07-2015 01:13 AM
Hi Hope,
why should it be more easy to detect "discrete peaks" on your own to "sum them up" instead of using the ready-to-use PeakDetection function?
Please define "make the analog signals have it descrete peak values"! What kind of algorithm you want to implement?
05-07-2015 01:22 AM - edited 05-07-2015 01:23 AM
05-07-2015 05:48 AM
@FalseHope wrote:
Well actually, i wanted to make the acquired signal have its discrete values because i will use the number of peaks of the sound to determine which sound is louder (my assumption is that, the louder the sound or the nearer the sound to the microphone. The more sound peaks can be acquired. While lesser peaks are acquired the least louder the sound).
That is wrong (unless you are dealing with Doppler Shifts, but they implies the object is moving). Closer peaks mean that you are dealing with a higher frequency (or pitch). Louder sounds just have higher amplitudes (larger peaks).
@FalseHope wrote:
I will acquire sound signal from the mydaq, then detect the peaks and add those peaks while it is entering the acquisition. I wanted to make it discrete so that i will be able to add the numbers and the addition will stop once the sound is no longer present. The sound im talking about is a sound burst. Or a single instant sound and is not continuous.
Just use the peak detection function. You can then add whatever peaks it finds from the current acquisition.
05-09-2015 02:45 AM
Yes sir, that's what im trying to do. the peaks I'm talking about are the amplitudes.
so louder sounds will yield higher amplitudes. The farther the sound source, the lesser the loudness, the lower the amplitudes.
I wanted to take those amplitudes, have its discrete values, then use a shift register to add those values. That's it.
I am not familiar with the peak detector VI. In the sample VI provided free in labview, the peak detector jsut detects peaks.
yes it detects peaks. but i cannot use the detected peaks for something else. It's just there showing me the peaks. But I wanted to use those peaks for something else then sum them up. If there's anything I can do in the detected peaks so that I can use it and sum it up, please do tell me.
Best regards, your newbie 16 years old.
Falsehope
05-09-2015 07:42 AM
"Sound" is a rather complex concept. I'm guessing that you are looking at/listening to "natural sounds" picked up by your microphone. If you sample the signal at a sufficiently high frequency (do you know about "sampling theory", and how the frequency of the sampling influences what you can say about the frequencies present in the sound you are sampling?), you will (probably) see a signal that varies in frequency and amplitude as a function of time.
If you are listening to "the sound" (I've deliberately named it as "one thing"), you will probably say "Oh, there are many "sounds" in that 10 seconds -- the phone rings, someone is talking, a door slams, and the whistling teakettle starts whistling". Have you considered how, or if, you would separate these "sounds" for analysis? What do sound engineers mean by "loudness"? Before you invent your own method for determining loudness, why not see what others who have thought about this topic for more than a century have tried?
Don't give up, but do some research on sound measurement (can you spell Google?). I suspect you will quickly abandon using peak detection ...
Bob Schor
05-11-2015 07:45 AM
FalseHope wrote:
yes it detects peaks. but i cannot use the detected peaks for something else. It's just there showing me the peaks. But I wanted to use those peaks for something else then sum them up. If there's anything I can do in the detected peaks so that I can use it and sum it up, please do tell me.
Yes, the Peak Detector tells you where the peaks are. Now use a FOR loop to autoindex on where the peaks are to get the level at those locations. Now you have an array to the peaks. You can then use Add Array Elements to add them together.
05-20-2015 11:09 PM - edited 05-20-2015 11:10 PM