Hi Bill,
Try the attached code--it uses hardware timing and averages N points together (I'm assuming you're looking to reduce the effect of noise on the measurement). Your loop rate is going to be (Sample Rate / N)
Edit: Don't use the default value of -1 for "Samples to Average".
Best Regards,
John
Message Edited by John P on 05-03-2010 12:32 PM
John Passiak