Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Timing

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

0 Kudos
Message 1 of 2
(2,877 Views)

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".

0 Kudos
Message 2 of 2
(2,873 Views)