Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i change Filter (smoothing) parameters during the acquisition?

Hi, i am trying to find all peaks and valleys of my data, but background noise causes multiple peaks and valleys. So i´m smoothing all data using the
Labview 7 Filter (Smoothing). But i found no wire connection to update inside filter parameters, such half-width of moving average, during the acquisition.
How can i change the filter parameters (half-width of moving average)while acquisiting data? How can i control them?
For example, with half-width of moving average = 1 the problem remains and the program should automatically jump to parameter = 2 and etc..
Thank you.
0 Kudos
Message 1 of 3
(3,583 Views)
Hello,


Great question! The type of functionality that you wish to have is completely achievable. The only catch is that it is not achievable from using the express VI as an express VI. It will take a little bit of modification. However, I think I can get you started in the right direction.

For starters, an express VI does not have any �new� functionality from a coding standpoint. The purpose of the express VI is to allow the user to do complex programming with ease. An express VI contains all of the code that you or I would write to do the same thing. However, when you leave an express VI as an express VI, you can not view this code. What we can do is convert the express VI into code so that we can make some simple modification, such as added in the
parameter for half-width moving average.

To convert our express VI, all that we need to do is right-click on the express VI and select �Open Front Panel�. LabVIEW will then ask you if you would like to convert the VI. After converting the VI, we can double click on it, and view the code that was generated. This code is no different then any ordinary LabVIEW VI.

I would encourage you to try out this process and see if you can make the modification. Please respond with any comments or further questions that you might have.

Good Luck!

Justin T.
National Instruments
Message 2 of 3
(3,583 Views)
Hello,

Thanks for supporting my question. Everything is clear now!
0 Kudos
Message 3 of 3
(3,583 Views)