Maybe I need to clarify. I have tried several methods. What I can not figure out how to do is how to get the software to hold/store a value in a registery or stack to compare to a more recent value. All I really need, is to know when the slope goes negative. All I really need is to subtract the two, but I don't know how to generate the different values using a 1-D array.