i am using shift register to detect the change of state of my system. --- to detect when the temperature exist the limit, say 50 degree
therefore, i want to set a constraint that when the past value is below the limit, and the present value is over the limit, the loop is runned and value, time is recoreded.
My problem is that the system can't run well.
here is my sample program