BigWumpus thank you for your help. I found the error and it works just fine now. It was my sampling rate and it was set for like 99000. I must have edited my code after a late night at the bar. I hate those errors that are vague and send you looking in all the wrong places.