stay in the same value of analog input give output one time

MostafaHamdy:
please , can you give me an example on signal edge detection or any link explain it

Look at the StateChangeDetection example.