LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Filter" a graph

Hi, 

I am using an usb NI 6210 capturing analog singal voltage. It represents Temperature in ºC.

The result that I get is the following:

 

image.pngI would like to doit it without noise, I achieved the following result using the block mean:

 

image.png

image.png

 

Please, HELP me, my goal is achieve a signal similar to the next picture, but I do not know how to do it:

image.png

For additional infomration, I am using this configuration:

 

image.png

 

Thanks in advance. PLEASE HELP ME.

0 Kudos
Message 1 of 19
(4,898 Views)

Taking the mean value is just one simple form for lowpass filtering. Try to use the Filter Express VI configured as a lowpass filter and play with the cut-off frequency and order parameter values.

 

Unlike the mean.vi that returns one value per loop iteration, the filter will export the same number of samples as it gets in, so you may want to decimate (skip samples) before graphing if that becomes a problem.

0 Kudos
Message 2 of 19
(4,873 Views)

You can do something similar to what you are doing and use a point by point mean. That would keep a history of mean values automatically for you and would filter your data. You can play with the history length to get closer to the nice curve that you are looking for. 

Tim
GHSP
0 Kudos
Message 3 of 19
(4,864 Views)

Hi,

 

you should try NOT to mix DDT wires with "standard" functions: there are coercion dots and they have an impact…

 

my goal is achieve a signal similar to the next picture

Depending on your requirements you already reached that goal!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 19
(4,857 Views)

Be careful of what you expect or demand from your data.

 

Your first pic is analogous to "interviewing a suspect."

Your second pic is a kind of "guided interrogation."

Your third pic is "coercing a confession."

 

Listen to what your data tells you, don't tell your data what you want to listen to.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 5 of 19
(4,853 Views)

Hi, thanks for your comments.

But I need a better solution to solve my problem. please, some function or method that you think that could help me.

 

I am reading this data:

 

image.png

 

But I want to achieve/filter/process the data to obtain this:

 

image.png

 

As you see, this second image is cleaner, safetier and "beautiful" for the process.

Pleas any idea?

 

Thanks in advance

 

 

0 Kudos
Message 6 of 19
(4,821 Views)

Hi aitor,

 

have you tried any of the suggested filters (low-pass) so far?

What is the current state of your VI? Can you attach it with same default data stored in a control?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 19
(4,818 Views)

Hi,

Yes, I have tried low pass, high pass, and the result is worst than before:

image.png

I do not know how to implement this filters in a correct way:

 

image.png

0 Kudos
Message 8 of 19
(4,815 Views)

Hi aitor,

 

there is no VI with your message, just some images we cannot debug or edit in LabVIEW…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 19
(4,813 Views)

Ok, sorry.

I attach de VI, I think you can delete de DAQ 1, this is because I activate a graph in function of a fisic botton .

 

Thanks in advance

0 Kudos
Message 10 of 19
(4,811 Views)