LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop a motor in a specific position with PWM and Encoder

We are using my Rio to get an encoded motor moving.

When we stop the program, the engine is not stopping in the exact position it is in, but returns to zero or to the maximum length, depending on the direction it is going.

Actually we would like it to stop at the position it is in when we press stop, how can we do?
We attach the program.

0 Kudos
Message 1 of 4
(694 Views)

Hi Uniali,

 


@Uniali wrote:

Actually we would like it to stop at the position it is in when we press stop, how can we do?


Which signal does your motor expect to stop in a specific position?

Do you output that signal when you stop your program?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(690 Views)

Our input signal was created by putting specific values in an array.
In output we go to graph these values.
Our problem is: It’s not important where it stops within this range, but the thing that interests us is that it stays where we stopped it.

0 Kudos
Message 3 of 4
(687 Views)

Often times these motors need to have power to stay in the place you wish, so by stopping your application it could be that it's power is cut.

 

Check the manual for how to operate said motor.

0 Kudos
Message 4 of 4
(669 Views)