LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multichannel data separation & finding mean

Hi
I am having some data in 6 channels. I need to group  them (2 groups each of 3 channels).
After grouping them i need to find mean of each roup.
 
How can i do the grouping?
 
 
 
VYBH
0 Kudos
Message 1 of 5
(2,592 Views)
Hi VYBH,
build two arrays out of your six channels. Use the "Add Array Elements" function and divide it with the number of elements.
Mike
0 Kudos
Message 2 of 5
(2,586 Views)

Hi VYBH,

There are many ways to do this depending on the format of the data you have. Here are two examples of manipulating arrays.

What format is your data? Do you have it in an array already or are you reading the data from an NI device?



Message Edited by Sappster on 06-18-2008 11:26 AM
Sappster
0 Kudos
Message 3 of 5
(2,563 Views)
Hi
 
I am having USB based cDAQ-9172 alongwith 9219 modules.
 
I tried my hands using Sort signal option.
 
I am sorting signals & then adding them to find mean.
 
 
Is this right method?
 
 
Vaibhav Khane
0 Kudos
Message 4 of 5
(2,556 Views)
Hi Vaibhav,
 
I'm not sure I understand what you mean. Can you provide an example of your code that shows how you are calculating the mean?
 
You should be able to add the signals together and divide by the number of samples.
Sappster
0 Kudos
Message 5 of 5
(2,539 Views)