ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

standard deviation error

Solved!
Go to solution

I have a data set where all values are exactly the same however labivew is not returning a standard deviation of 0 when I perform this calculation within a loop. Please see the attatched .vi . (Perhaps I am overlooking something obvious).

0 Kudos
Message 1 of 3
(3,087 Views)
Solution
Accepted by eword

Computers cannot exactly represent floating point numbers. The standard deviation you are getting is such a small number, it is effectively zero. You could easily test to see if it less than some other very small number and set it to zero if you want.

Message 2 of 3
(3,077 Views)

Ok I thought it may be something like that. Cheers.

0 Kudos
Message 3 of 3
(3,071 Views)