# LabVIEW

cancel
Showing results for
Did you mean:

Solved!
Go to solution

## Filtering

Hi,

I want to smooth the Waveform graph. I would like to have just two main peaks. Apart from that, all the minor fluctuations should be smoothed. Does anybody have any idea? I would really appreciate it.

Thanks

Message 1 of 8
(295 Views)

## Re: Filtering

Hi Michel,

apply a simple formula on your intensity values to "smoothen" them:

`intensity = MAX(intensity, 32)`
Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome

Message 2 of 8
(281 Views)

## Re: Filtering

Hi GerdW,

thanks for the reply. But when I increase current, light intensity changes and main peak diminishes. So light intensity values are not constant. Do you have any idea how to smoothen graph according to position so that in every increasement of current the graph stays smooth. I send snapshot of graphs in different curent values.

Message 3 of 8
(213 Views)
Solution
Accepted by michelsteffenss

## Re: Filtering

Hi Michel,

But when I increase current, light intensity changes and main peak diminishes.

How do you distinguish "peak" from "noise" in those plots?

So light intensity values are not constant. Do you have any idea how to smoothen graph according to position so that in every increasement of current the graph stays smooth.

Generic answer: use a low-pass filter…

I send snapshot of graphs in different curent values.

Real data in a real VI would be better.

You also need to define the expected result of the filter, when applied to the "11 Amper" plot data…

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome

Message 4 of 8
(204 Views)

## Re: Filtering

Hi GerdW,

position of main peak stays constant. As I know the position of it, I can distinguish it.

Best regards

Message 5 of 8
(185 Views)
Highlighted

## Re: Filtering

Hi Michel,

As I know the position of it, I can distinguish it.

If I would only see the data from "11 Amper" then I would NOT know what you are interest in…

position of main peak stays constant.

When the position is known then all you need to do is the delete (aka replace by a know value) all other "position" data and only keep the data for the positions of interest!

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome

Message 6 of 8
(159 Views)

## Re: Filtering

Hi GerdW,

These intensity values come from light. There are two sources of light. Light which causes two main peaks come from a flame. The other part ,which I try to smoothen, come from a lamp. I must compare light intensities coming from different light sources. I want to smoothen small fluctuations in order to get two main peaks which I am interested in. Therefore I cannot delete other positions.

Thanks.

Message 7 of 8
(143 Views)

## Re: Filtering

Hi Michel,

I want to smoothen small fluctuations in order to get two main peaks which I am interested in.

When the peaks, in which you are interest, show the same "fluctuations" as noise from other light source, then it will be hard to "smoothen" the noise, but not the wanted "peaks"…

You really need to define the expected result for a signal like shown in "11 Amper"!

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome

Message 8 of 8
(133 Views)