LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analyses on single point data signal

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

Message 1 of 52
(3,846 Views)

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 

0 Kudos
Message 2 of 52
(3,819 Views)

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.

single point signal.PNG

0 Kudos
Message 3 of 52
(3,808 Views)

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 Smiley Tongue

 

Rgs,

 

Lucither.

------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
0 Kudos
Message 4 of 52
(3,800 Views)

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

 

Accumulate to array.png

0 Kudos
Message 5 of 52
(3,795 Views)

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.

 

0 Kudos
Message 6 of 52
(3,789 Views)

This problem is still unsolved.

Kindly post any technique of solution.

Thanks

0 Kudos
Message 7 of 52
(3,728 Views)

This problem is still unsolved.

Kindly post any technique of solution.

Thanks

0 Kudos
Message 8 of 52
(3,728 Views)

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

0 Kudos
Message 9 of 52
(3,716 Views)

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. 

creating array.PNG

0 Kudos
Message 10 of 52
(3,701 Views)