LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analysing sine wave

Dear members. First I want to say I've learned alot on this forum. There are a lot of members with good knowledge about Labview. I like this forum very much and want to thank you for your help you are giving members. Please keep up the good work!
 
My problem is as follows. I want to analyse a sine which is brought in through the audio line in on mijn soundcard. I've written a labview program which opens the audio line in and I can view the input "realtime" from the "si read.vi" VI.
 
My signal consists of a single sine which stabilizes to zero in a period of time (say, 10ms). I would like to acquire this sine in a waveform chart so i can scroll left and right to view the sine. Next thing I would like to determine the maximum amplitude and at which X coordination it's happening. Next I would like to determine the first zero cross time of the first half period of this sine. Is there someone who can help me or give me a push in the right direction? I appreciate it alot, thanks in advance!
 
I've added a picture for illustration.
 
0 Kudos
Message 1 of 2
(2,740 Views)
If you are analyzing your data after it is collected, the Array MAX&Min vi gives you the max value and the index position in the array. Then you could use the Search 1D array vi or Threshold 1D array to find the first zero value. Another possibility would be to use the Zero crossing ptbypt vi inside a for lop or while loop to analyze the source data.
0 Kudos
Message 2 of 2
(2,719 Views)