From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

SignalExpress

cancel
Showing results for 
Search instead for 
Did you mean: 

Calculating average/mean from signal passed limit test

Solved!
Go to solution

Hi,

 

How Can I calculate mean value form limit test passed signal? Static step gives on NaN.

 

Thanks in advance

 

Mika

 

 

 

 

0 Kudos
Message 1 of 4
(4,110 Views)

Hey Mika,

 

It looks like you're getting the NaN as it's including the data at 0-325ms and 675-1000ms. I'd look into changing the acquistion of your data to only include the actual data.

 

Limit Tests in Signal Express Help Page: http://zone.ni.com/reference/en-XX/help/371268J-01/expresswb/limit_test/

 

If not feel free to post your code to see if this helps shed any light?! 

Kind regards, 
Rebecca

 

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

Hey Rebecca,

I was not so precise what I am doing. I hope attached file explain.

 

-Mika

Download All
0 Kudos
Message 3 of 4
(4,041 Views)
Solution
Accepted by topic author tuomyl

Hey Mika, 


I don't have the actual data you'd be looking at (i.e a TDMS file) but I've had a quick look at the steps.

 

Try inserting a subset step before your statistics to find the mean and specifying the range of 325m - 675m (although these numbers are rough estimates from looking at your intial posted image so may need amending to ensure there is no NaN data). Then select the new subsection as the signal to use in the statistics step instead. 

 

Hope this helps. 

Rebecca

0 Kudos
Message 4 of 4
(4,026 Views)