Hi Jerson,
You mean the answer is in one of my own former posts? That's embarrasing
At that point thanks to your code slightly modified I was able to parse my serial port data into two arrays rather than longs. I found this was better since I didn't need to do anything other than display it. Now I am having to add a feature where I average the last 60 samples. I don't think there is any way to average ASCII strings so I decided I need to convert it to longs.
So looking back at your original code I'm not totally clear how it works. I'll study it in more detail and maybe it will click...
TR
Bookmarks