07-31-2013 07:45 PM
Hello,
Attached is a program that I would like to have only run for exactly 3 seconds when it is triggered. How can I achieve this? The program is basically controlling a servo motor/ quadrature encoder setup and I would like to be able to only power on the servo with specific duty cycles for only 3 seconds. That is, each duty cycle should run for only 3 seconds and the motor should stop. I have not been able to achieve that time for it was varying with different duty cycles. The slower duty cycles run for a longer time than the quicker duty cycles. What might be the problem and how can it be fixed? Could a stop trigger be used. If so, how?
Thank you
07-31-2013 09:30 PM
Instead of doing a "Continuous" signal generation, select "N Samples". Calculate the number of samples you need at the sample rate you choose to add up to 3 seconds, and use that as your "Samples to Write".