DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

Average data from two channels into one

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.

 

0 Kudos
Message 1 of 3
(5,778 Views)

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. 

Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 3
(5,773 Views)

Thanks CJ: I missed the second parenthesis .    Smiley Indifferent

0 Kudos
Message 3 of 3
(5,762 Views)