07-06-2010 09:46 AM
I cannot tell much from your program without any data.
Run your program and record some typical data. Stop the program. Go the the Edit menu >> Make Current Values Default. Then save the VI. Post this Vi with the saved data.
Also, how do you stop your program with the Stop button hidden behind the Spectrum Plot graph? The Abort button on the tool bar should only be used to stop a runaway program during development. Someone on the Forums has compared stopping a program with the Abort button to stopping an automobile by crashing it into a tree: It works but there may be undesired consequences!
Lynn
07-06-2010 09:39 PM
here i have done that. Theres alot of samples taken but i only need the highest peak I know I can write the results in a table format then use Excel do analyze to find the greastest value but Im assuming that LabView has a function to display the max value (frequency) obtained. See if you can help. Thank You,.
07-07-2010 07:55 AM
Is that really the results of striking a wind chime? The signal to noise ratio is horrible.
I would expect to see a weakly damped sine wave with about 20-30 dB S/N from a wind chime in the raw data. At best your signal is about 2 dB above the signal.
My guess is that you captured a 1 second batch of data which occurred about 5 seconds after the chime was struck.
Your program seems to be a reasonable approach, but you need to have some real data.
Lynn
07-07-2010 11:41 AM
i realized that. is there a way to limit the time to just 2 seconds and then the progrma terminates. would you let me know
07-07-2010 12:03 PM
Set the loop to stop after 2 seconds. If you are acquiring 1 second of data on each iteration, stop after the second iteration (i =1).
If you are quick, push the stop button.
Lynn
07-07-2010 12:05 PM
I'm not sure what the sample rate is for the SoundInputRead vi. But you should choose Finite Samples in your init vi and set the number of samples to whatever number it would take 2 seconds to read. Also, I don't think you need a loop. Just read the sound input and process the data. The real trick is the run the program so that the pipe is struck a few milliseconds after the read starts. Perhaps a start button to trigger the read function. Then press start and immediately afterwards strike the pipe.