LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

finding peak value on graph

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

0 Kudos
Message 11 of 16
(1,376 Views)

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,.

0 Kudos
Message 12 of 16
(1,362 Views)

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

0 Kudos
Message 13 of 16
(1,349 Views)

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

0 Kudos
Message 14 of 16
(1,342 Views)

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

0 Kudos
Message 15 of 16
(1,335 Views)

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.

 

- tbob

Inventor of the WORM Global
0 Kudos
Message 16 of 16
(1,334 Views)