LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multi-channel input average

I am working on what amounts to a LabVIEW strip chart recorder that is able to read multiple inputs utlizing an AI continuous scan VI.  The goal is to be able to average multiple signals in real time and output the result as a spreadsheet and a waveform graph.  I am having trouple separating the data out of an index array in order to easily average two signals.  Any ideas would be much appreciated.
0 Kudos
Message 1 of 2
(2,448 Views)

Can you post your code? You could use a loop that has an array subset VI getting a subset of however many rows you want to average. Keep track of the next index with a shift register and increment (inside loop). use the ctrl+spacebar to do a quick drop of the mean.vi . You could be writing the averages to a spreadsheet file (write to spreadsheet.vi) all along, depending on your rate. Otherwise you would want to work with 'chunks' of rows to create your graphs and write to file.

 

Thats just a quicky but I am sure you will get a better solution fast if you drop some code here. 

Message Edited by rex1030 on 09-21-2009 01:54 PM
---------------------------------
[will work for kudos]
0 Kudos
Message 2 of 2
(2,446 Views)