Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Facing problem in averaging the multichanels

iam using SCXI 1102 +pci 6250 for acquring very low level signals,and iam facing the problem while averaging these signals.
my application is when i press the start button(event triggering) on the front panel it should acquire the 6 channels signals and average(ex 100 samles) it,averaged signal should write to the file in six columns.instead of averaging the 6 channels individually it is averaging the only first channel and showing the same to the other channels also.My program is as same as scxi-1100 voltage.vi,instead of traditional daq i/o's i have designed using DAQmx.
can anybody give me the solution for this.
0 Kudos
Message 1 of 2
(2,721 Views)

Unlike Traditional DAQ, DAQmx gives out each channel's data row wise in the 2D array.

In your program you are indexing each column and averaging it.

Instead, index out each row and average it

You could also exploit the auto indexing property of a for loop to do this

Do as shown in modified vi

Message Edited by devchander on 10-06-2006 01:22 AM

0 Kudos
Message 2 of 2
(2,710 Views)