01-19-2011 01:13 AM
Hello,
I have successfully plotted single value as a signal on waveform chart(Consider a signal generated from Random Number Generator). Now i want to view its parameters and analyze the signal but the problem is that i have been unsuccessful in getting its amplitude and frequency through the Tone Measurement.
Kindly guide me what steps to follow.
Thanks
01-19-2011 07:15 AM
You have certainly confused me. You talk about a signal consisting of a single point. Then you want to measure its frequency and amplitude??? What is the frequency of one point?
Your mention of a chart makes me think that what you actually want is to analyze the time series which results from accumulating (in some sense) many points acquired at sequential times. Is this correct? If so, you need to put the single points into an array. The simple, brute force, way to do this is to put a Build Array primitive in a loop and pass the resulting array to the next iteration via a shift register. A better way is to pre-allocate memory for the array and use Replace Array Subset. A third option is to use the chart history. Look at the help files for each of these to learn more about them.
Posting the VI you have tried so far with comments about what works and what does not can be very helpful to get you going in the right dierction.
Lynn
01-19-2011 09:52 AM
Thanks Johnsold.
Yes this is like i have created a signal from random values, which are single value for each time point.
I forgot to mention that i have already tried this by creating array using the build array function with feedback node but failed to achieve the task so i removed it latter on.
I am attaching the pic of it.
01-19-2011 10:06 AM
Hi Intelligent,
Why are you using a sequence structure? There is not one part of that code that requires one, simply use the error in/out terminals of your time delay functions. You should normally go out of your way not to use these but you have done the opposite
Rgs,
Lucither.
01-19-2011 10:22 AM
As Lucither said, you do not need the sequence structure.
This is one way to accumulate data into an array. Notice that the chart accumulates data as the loop runs while the graph shows what has accumulated after the loop is stopped. This method of accumulating data requires frequent memory re-allocations and thus gives poor performance if the array can get large.
Lynn
01-19-2011 10:48 AM
Thanks you all.
The sequence structure is used to join numbers that are obtained serially. So it runs in a chain and at the end i have to join them to make a single 16 bit value.
So every value is then plotted on the chart. So every value is a single time based value.
The actual problem is the analyses. I was able to plot them on chart and graph creating the build array function. But was unable to calculate the amplitude and frequency using the Tone Measurement Function.
Here i think that i once again clerify my task.
I am acquiring analog signal serially, say sine wave. Which i successfully displayed in chart.
Now i want to analyze the signal i.e remove any noise present in the signal, measure its Amplitude and Frequency.
Which i am unable to achieve.
01-24-2011 03:48 AM
This problem is still unsolved.
Kindly post any technique of solution.
Thanks
01-24-2011 03:48 AM
This problem is still unsolved.
Kindly post any technique of solution.
Thanks
01-24-2011 09:07 AM
Did you try the Build Array method I posted in message 5 of this thread? If so, what did or did not work with it?
Lynn
01-25-2011 11:10 PM
Hello, and thanks again
Yes i have tried it but didnot get the result.
As i have stated, my task is to calculate the frequency of the incoming signal that is created from single points.
Here i am also sharing the pic of the last sequence that is just used for calculation.