LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with a loop

Solved!
Go to solution

Hi,

 

I'm trying to do a numeric approach to get (95%) coverage factors for a student distribution depending on the degrees of freedom.

I saw a paper that used an approach

https://cfmetrologie.edpsciences.org/articles/metrology/pdf/2013/01/metrology_metr2013_04004.pdf

and I wanted to replicate it in here. All seems to work fine when I'm using up to 30000 distributions but above that number something I don't understand happens. The summation in the while loop starts outputting a negative number? I should try to reach 1000000 distributions as the paper says to get reliable coverage factors but there must be an error somewhere that I cannot see.

Thanks for your help!

 

0 Kudos
Message 1 of 3
(214 Views)
Solution
Accepted by topic author cobayatron

Well that s because the numeric constant that you are using for shift register of for loop is set to I16.

uncertainity.png

 If you want to iterate to 1000000 distributions set it to U32, it will help you. Do the same for graph also


CLD Using LabVIEW since 2013
0 Kudos
Message 2 of 3
(180 Views)

I love this forum. Many thanks  kartiknattar!

0 Kudos
Message 3 of 3
(166 Views)