LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need to read mean function output as array.

Highlighted

hiii everyone ...

i am fresher to labview .please help me ..

i need to read the mean function output as array. i know that mean function can't  gives the output as array. but in my application its required array.

 

i have 1D array wave form from that i need mean value and again its should be 1D array waveform .

0 Kudos
Message 1 of 5
(164 Views)

Hi NI,

 

i know that mean function can't gives the output as array. but in my application its required array.

The simple (like quick&dirty) answer to that sentence is: use BuildArray…

 

i have 1D array wave form from that i need mean value and again its should be 1D array waveform .

Do you have an array of waveforms as input? Then you should use an autoindexing loop to handle that array - and you would get an array of mean values as output. What's your problem, anyway?

What kind of output do you expect? Why do you need an array of waveforms as output of an average function?

 

Most often it helps to provide an example VI, with some useful test data set as default inside the VI. Also give an example for the expected output of your example VI…

(And don't use the latest LabVIEW version when posting VIs, you will get a broader audience when you use an older LabVIEW version. I like LV2017.)

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 5
(143 Views)

Are you looking for a moving average?


There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
0 Kudos
Message 3 of 5
(93 Views)

thanks for your suggestion . actually my problem is i am acquiring some amount of data but its getting fluctuation ..those  data i displaying and storing in a TDMS file format. to avoid fluctuation i made average those data in display section and its showing stable value without fluctuation. but daqmax read function storing data as a fluctuated values only . while open and read the TDMS file there  i am getting stored data as fluctuation. 

you have any idea about to avoid fluctuation.

DAQ card 20kS/s

i am reading only 1000S/s

 

0 Kudos
Message 4 of 5
(60 Views)

Hi NI,

 

Read at 20kS/s and average to 1kS/s to reduce noise before saving to file...

Best regards,
GerdW
CLAD expired, using 2009SP1 + LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 5 of 5
(49 Views)