Search the Community
Showing results for tags 'previous'.
Found 1 result
Hi and Happy New 2018 all! Maybe this will sound like a dumb question, I am beginner in programming in VisiLogic, so is there any way to compare current value received from an analog input with a previous value received from the same input. I have tried to use the 'Store Direct' with MI0(analog input operand) value to be stored in MI1 and tried compare MI0(A) with MI1(B), but it always gives me the same value. How to memorize previous value and be compared with the current? How to make MI1 hold the previous value, MI0 to hold the current, and untile they are compared MI1 is not overwritten by the current value? Thank you in advance.