01-13-2015 06:44 AM
Have a snag in my program . What would be the most efficient way to take the incoming analog data from two channels and average it into one channel in Dasylab 13. I tried the the formula interpreter module but couldn't get the result i was looking for with my formula. IN(0) + IN(1)/2
I also noticed an average module under data reduction but can'f find any examples of it's use.
Can anyone provide an example of doing this reduction ? Thanks Kent.
01-13-2015 07:34 AM
The formula would be (IN(0) + IN(1))/2
Note the parenthesis ensure that the addition is done before the division.
You can also use the Arithmetic module - all channels (formerly two or more channels) to do an arithmetic mean of all input channels.
The Data Reduction average module does its computation on a single channel. The incoming values are averaged with the previous values. It can be used for data reduction (4 samples in, 1 sample out) or a moving average that smooths the signal.
01-13-2015 02:06 PM
Thanks CJ: I missed the second parenthesis . ![]()