05-15-2018 02:28 AM
I have written a program to move stepper motor to clockwise and anticlockwise direction. I wanted to increase the speed of stepper motor which I'm unable to do. Please help me with this. I am attaching the VI.
05-15-2018 02:34 AM
Hi canzie,
I wanted to increase the speed of stepper motor which I'm unable to do.
Maybe using a lower value for the wait function inside your FOR loops may help?
- Why do you need to cases for "clockwise" and "anticlockwise"? They only differ in just one bit! (Yes, just one boolean value…)
- Why don't you use AutoCleanup?
05-15-2018 02:38 AM - edited 05-15-2018 02:39 AM
I'd say the normal solution is to use the Counter out and simpy set a frequency, then it's very easy to change speed. With your current solution you'll need to change the Wait(s).
/Y
05-15-2018 02:48 AM
Will you please elaborate it
05-15-2018 02:57 AM
As reference.
/Y
05-15-2018 03:33 AM
But I am using LINX in that there is no such option of counter frequency.
05-15-2018 05:32 AM
@canzie07 wrote:
But I am using LINX in that there is no such option of counter frequency.
Then you basically have to change the case to this. Remove the for loop and have it perform the case every X ms.
/Y
05-15-2018 07:31 AM
Sorry I didn't understand.
05-15-2018 09:00 AM
Instead of having a For loop run 100 times, remove the for loop and let the whole program and Case run again and again, and switch the LED each time. The previous picture is the removed for loop with a feedback node for switching.
/Y