LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

identify the disturbances in a signal

I have a siganl received from working machine which contains some major disturbances and some minor. I will like to filter the minor disturbances and just indentify the major disturbances in the signal. I am attaching the display of the signal. Will someone guide me how can I process this signal?

0 Kudos
Message 1 of 16
(4,580 Views)

Dear  rahulmore,

 

You have first to find out the frequency range of the minor disturbances and then create a Filter with his range to filter out the disturbances.

For generating a filter you can use the Filter.vi's located in the signal processing Palette:

Signal Processing Palette

 


Regards,
Oleg Scherling, M.Eng | Applications Engineering | National Instruments | NIG |

0 Kudos
Message 2 of 16
(4,528 Views)

Hello,

The signal has waveform nature with a frequency of about 50 Hz at higher amplitudes as shown in the attached image. I am interested to recover this waveform nature to get plain wave nature at higher amplitudes so that I can measure the misturbances (negative spikes) and define a standard profile of signal with neagtive spikes and deteremine if there are any changes in the pattern of negative sipkes. At the end, I am expecting the signal with nearly constant / almost constant higher amplitude level.
If you have any suggestion, please share.

- Rahul

Download All
0 Kudos
Message 3 of 16
(4,481 Views)

Dear  rahulmore,

 

You have to implement a Low Pass Filter with a limit frequency nearby 50 Hz to cut of all higher disorders.

Then you should get a clear signal where you can apply some of the Wfm Measurements to measure the misturbances and define a standard profile of signal.


 

Regards,
Oleg Scherling, M.Eng | Applications Engineering | National Instruments | NIG |

0 Kudos
Message 4 of 16
(4,470 Views)

Oleg,

Even with Lowpass filter with cut off freq. of 50Hz, the profile is same.
Please find the attachement. I am also checking with bandpass filter but it is not helpful to clear-out the waveform nature of signal.

 

- Rahul

0 Kudos
Message 5 of 16
(4,465 Views)

Dear  rahulmore,

 

I tryed to filter your Signal in DIAdem and compare with the original one.
 
Here is my result with a Low Pass Filter with f0= 2000 Hz
Filtered Signal.PNG

I Think is looks really good.

 

 

Regards,
Oleg Scherling, M.Eng | Applications Engineering | National Instruments | NIG |

0 Kudos
Message 6 of 16
(4,448 Views)

Oleg,
Thanks for the suggestion. It works fine but the waveform profile of the signal is still observable.
Lowpass 2000Hz.JPG

 

 

I tried to work with Bandpass filter in the range of 49 - 51 Hz with IIR, It gives somewhat good results with smooth signal but it takes some time. Below are the snapshots of the option I tried. 

I will like to get the good signa filtered out instantly at the start. Below are the snapshots of the option I tried. Can you suggest some other option?
 - Rahul
Block Diagram.JPG

Front Pannel.jpg

0 Kudos
Message 7 of 16
(4,432 Views)

I have tried to follow both of your threads on this topic and am still confused.  I thought you were trying to eliminate the negative spikes but now it seems that those are the real signal.

 

What kind of light source and detector are you using on the drilling machine shown in the other thread? 

 

Can you show us an image of what you think an ideal signal would look like? What characteristics of that signal are you trying to measure?

 

Lynn

0 Kudos
Message 8 of 16
(4,428 Views)

Lynn,

Yes, you are right, the negative spikes are the real aprt of signal.
I am attaching the image mentioning the real signal and disturbance in it.
The negative spike is the only way through which I can analyze and deteremine the disturbances in signal.

- Rahul

 

Signal Real.JPG

0 Kudos
Message 9 of 16
(4,422 Views)

Rahul,

 

I have looked at your data and have several observations and suggestions.

 

1. I doubt you will be able to use a filter to eliminate the power line frequency components. I will discuss this in more detail below.

2. A baseline correction process may work better.

3. Determining what to use as the "baseline" may not be trivial.

4. After correction or adjustment, automatically locating and analyzing the disturbances may depend on how much you know about the drilling process.

 

Filter discussion: The desired signal is at about 180 Hz with harmonics out to about 5 kHz at -50 dB. The undesired power line frequency-linked interference has components at 50, 100, 200, out to about 1000 Hz before they drop into the background noise.  The overlap makes any simple filter unsuited for removal of the power line frequency related components.  In this image the large peak is the desired signal (fundamental component).  Peaks at 50, 100, 200, and 300 Hz are all likely linked to the power line frequency.

 

Spectrum original.png

 

Another factor is that all filters have transient effects which cannot easily be removed.  This image shows the result of a 2nd order Butterworth highpass filter with a 125 Hz cutoff frequency.  The transient effect is easily seen as the curve of the top of the envelope. The transient has not completely decayed at the end of the 2 second data segment.  And this filter has minimal effect on the power line frequency component of the baseline.  Higher order filters have worse transients.

 

Filtered.png

 

I extracted a baseline on a segment by segment basis.  The segments were defined as starting 50 samples after the signal rose above -0.5 until 50 samples before it dropped below -0.5 the next time. The "real signal" part was replaced by the mean of the baseline segment preceeding it.  As you can see the replacement at 0.018 to 0.02 in this image is not very close.  A refinement might take the average of the baseline segments before and after, but that would add considerable complexity to the VI.  The spectrum of the adjusted baseline still has strong components at 50, 100, and 200 Hz but the component at the 185 Hz signal frequency is barely detectable.

 

baseline.png   baseline sepctrum.png

 

Subtracting the adjusted baseline from the original data produces these time and frequency domain images:

 

Corrected.png

 

Note that the power line frequency components are now lost in the nosie while the main signal components are nearly unchanged.

 

I have not yet looked at how to detect the distrubed signals, although a threshold comparison may be worth investigating.  Note that the baseline adjust process generates arrays containing indexes of the beginning and ending of the spikes. You may be able to use this to find spikes which do not go as negative as others such as the one at 0.133 s. A threshold at -5.5 to -6.0 would find this one.

 

Disturbance.png

 

I have attached my VI. Note that I removed most of your code except for the read file portion.  I did not document how things work.  If you cannot figure out why I did something, ask.  The >0? comparison in the left for loop skips a segment which is probably due to some noise peak which exceeded the -0.5 threshold (which was entirely arbitrary).

 

Lynn

 

Message 10 of 16
(4,399 Views)