06-09-2009 03:51 PM
Hi, I am trying to use the following code snipped in formula node:
z=(x-2.5)*50;
if (z>-10.0||z< 10.0) {
y = 0;
c=0;}
else {
y = 5*x-12.5;
c=1;}
x is input (from cRIO) and z, y, c are outputs .
It doesn't seems to work properly, y, c are always 0.
How else can I use compound evaluation: -10<z<10 ????
Thanks,
Arthur
Solved! Go to Solution.
06-09-2009 04:13 PM
06-09-2009 06:12 PM
elementary, Watson.
Thanks