LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filtering a 2d array and taking average

Hii Friends,

 

Can anyone help me in sorting out the following issue with my Labview code.

 

My program consists of the following steps:

 

1) Opening an already existing spreadsheet having two columns (p and s)

2)Filtering few values in the s column above a threshold value (I my code it is 0.025) and then removing the corresponding p values.

3) Taking a rolling average with 10 point interval

4) Filtering p values in a certain range(0.2489 and 0.273) and extracting the corresponding s values(around 31 values in my code)

5) Lastly, i take normal average of these 31 values. of both p and s.

 

 

I have made similar calculation in excel and crosschecked my program. Upto the 4th step, the program code seems to be fine. The problem arises in the 5th step.

 

The p mean and s mean seem to be right. However, the array size in the last loop displays a value of 992 instead of 31. Not knowing where the misake has been made. Can anyone point out my mistake so that i can correct it.

 

I am attaching my excel file from where i got the data, the front panel pic and my labview code.

Thanking you

 

Download All
0 Kudos
Message 1 of 4
(2,694 Views)

sorry guys..solved the problem myself...

0 Kudos
Message 2 of 4
(2,641 Views)

Well, tell how you solved it.

 

It might help someone in the future with a similar problem who discovers your message thread.

Message 3 of 4
(2,637 Views)

And then mark your own post as a solution so this thread shows as solved 🙂


GCentral
0 Kudos
Message 4 of 4
(2,630 Views)