08-03-2005 10:14 PM
08-04-2005 07:19 PM
Hello Peter,
Would it be possible for you to acquire all of your analog input data and after it is acquired, find the point that matches up with the peak of your wave? It seems that this would be an easier solution than trying to only acquire one point of data at the same exact time your output wave is at its peak.
As for the derivative calculation you are describing, it seems you need the time between the two successive analog input measurements you are using to calculate the derivative. You will calculate two different angles based on the arctangent you described so for the dt, I would guess you use the time difference between these two points. And if the points happen once each period of the wave you generate, then it would indeed be 1/7KHz.
Let us know if this helps!
Thanks,
Laura
08-09-2005 04:04 AM
Thank Laura!
Good idea, this will make things much easier. I am able to measure the angle know, the next thing I need to make is speed calculation but that is not to difficult know because the timing info is available in the wave form.