Hey, thanks for the other info, but we have been able to borrow a nice daq from another lab, so now we are just using the counter output, which is controlling the motor fine. However, I do have one more question. We are also taking in some analog data and I was hoping to be able to match it up with the counter output relative to time.
I am taking analog data at 1000 Hz using a buffer and am not sure of the best way to compare that to the counter output. Since my motor is running at a constant speed, I have just been taking the frequency of the counter and multiplying it by the total time. So, if I ran it for 3 seconds at 2000 Hz, I would have 3000 analog points with the motor moving a total of 6000 steps. So for each analog point, the motor moved 2 steps and I can make a table and plot this.
However, I assume there is probably a better way. Can I take samples of the counter, like at 1000 Hz to match up with the analog data, so then I can instantly have a table with the number of motor steps and the analog data. The DAQ board does have another available counter.
Thanks again for any help,
-Robbie