‎10-16-2017 02:43 AM
Hello!!
I am trying to run a stepper motor using myRIO, for which I am using the PWM signal. To control the number of steps moved by the motor I need to control the number of PWM pulses. The PWM module available for myRIO has options only to control frequency and Duty cycle. I need to stop the PWM after certain number of pulses. How can I do it?
Thank you.
‎10-17-2017 08:44 AM
vi1809,
Have you had the chance to look at the following forum? Somebody was trying to perform something similar to you and I believe they found a workaround for this.
Regards,
Tuco100s
‎10-17-2017 10:09 PM
Hi!! Tuco 100s
Thanks for the suggestion, but i went through the forum that you suggested. To generate the number of steps they have used independent "for" loop. But for my purpose i need to use it inside another "while" loop. When I run the "for" loop all other processes in the "while" loop stop that i don't want. Is there any solution to this problem?
‎11-06-2017 08:06 AM
You can use a while loop and implemented to stop at a certain condition