We cannot help unless you show us your code. Most likely you are calculating wrong.
Since this is a plain LabVIEW questions, it would be better to discuss it in the LabVIEW forum.
(What is the difference between "LabView", "lab view" and "LAb view". I am only familiar with LabVIEW.)