LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why ís the comparison function saying that two numbers are inequal when they are equal?

Solved!
Go to solution

In my VI, I compare 2 values (labeled ''Value 1'' and ''Value 2''). If they are not equal, the while loop stops running. To test the loop, I set the parameters so that Value 1 and Value 2 are always equal. However, when the values reach 700, the comparison function is saying that they are unequal, even though they both appear to be the same on the front panel. Any ideas on what I am doing wrong? See attached vi for reference.

0 Kudos
Message 1 of 2
(1,836 Views)
Solution
Accepted by topic author Laura121

Floating point comparison! I hope I havent opened the flood gates AGAIN!

 

Please read this: http://digital.ni.com/public.nsf/allkb/B01682241DD825948625665100663F61


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 2 of 2
(1,834 Views)