LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract periodic signal from raw XY data?

The signal is periodic,so the acquired data(XY Graph) contains many of it.see pic.

I have to analyse the signal part,but don't have a way to extract it from XY graph data.

Any suggestions .Thanks.xy graph.png

0 Kudos
Message 1 of 7
(3,943 Views)

Hi avater,

 

use ArraySubset to get the interesting part from your XY data…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(3,925 Views)

You call it XY data, but are the X values all equally-space, as though they were sample times?  If so, you can consider it a 1-D array plotted as a 1D Waveform (with the "dt" component equal to the time difference between the points).

 

With a periodic signal, the first (non-zero) peak in the autocorrelation function should correspond to the period of your signal.  Once you know the period, you can do things such as chop the signal into intervals corresponding to the period and averaging, which should enhance the signal-to-noise ratio.  You can then look for maxima and minima and use these values (and some visual inspection) to isolate the signal.

 

Bob Schor

0 Kudos
Message 3 of 7
(3,917 Views)

Actually I don't know the period of the signal.All I get is this kinf of periodic signal,raw data.

And I believe the intervals between signals are not presice the same.

By our eyes,it's easy to know where the signal is and get it apart.Is there any function in Labview that can do simila r thing?

0 Kudos
Message 4 of 7
(3,908 Views)

Hi avater,

 

Is there any function in Labview that can do simila r thing?

You can detect pulses using the PulseDetection…

(You can do it "manually" with a compare function and an array search operation.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(3,903 Views)

OK, it sounds like you need to learn a little Signal Theory.  Find an Electrical Engineer, show her/him the problem, and get suggestions.  Note the key question, are these uniformly sampled data, wasn't answered, and will be a very important part of how you proceed.

 

Bob Schor

0 Kudos
Message 6 of 7
(3,895 Views)

@avater wrote:

The signal is periodic,so the acquired data(XY Graph) contains many of it.see pic.

I have to analyse the signal part,but don't have a way to extract it from XY graph data.

Any suggestions .Thanks.


Let's quickly catch up what you mean by "extract", because it might not be clear to some of use. Obviously, your signal contains two distinct components:

 

  1. a rolling wavy part
  2. sharp spikes at regular intervals.

So, which one is the interesting part you want to further analyze and which one do you want to ignore? (does "extract" mean "remove" or "keep only"). Which part is interesting and which part is an artifact? Since the two components differ vastly is their spectral composition, it seems almost trivial to separate them and you already got some good ideas.

 

To give more detailed advice, it would help if you could answer a few questions and even attach some raw data. Are the x-values spaced equally or arbitrarily? Even if they are not exactly equally sampled, I would bring them on an equally sampled trace using interpolation. Is the distance between the sharp peeks an exact multiple of the time between points? What are you trying to get out of the data? (e.g. frequency and decay constant of the sharp signal averaged over many occurrences). Is the signal recorded in quadrature or plain?

 

0 Kudos
Message 7 of 7
(3,892 Views)