12-11-2006 04:21 AM
12-11-2006 04:36 AM
12-11-2006 04:46 AM
The formula node uses c-like constructs, so if you want to check for equality use " if (x==1) ..... "
With a single = sign in the 'test' it becomes an assignment. In C the expression (x=1) has the value of the right hand side of the assignment, here 1 (true) so the true part of the if will always execute. It's a common source of error in c programming.
I presume that this is part of a larger formula, ortherwise you should use native LabVIEW tests.
Rod.
12-11-2006 05:03 AM