LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with controlling DC Servo Motor

Solved!
Go to solution

I'm working on a project on Servo motor control with Myrio. I’m reading pulse from encoder by LabView, then calculating the output and export Analog Output to the Driver of the motor, in addition to controlling the direction of the motor is required to export a DI signal to the driver. I use two sets of PIDs, the inner loop controls speed, the outer loop controls position.

The setpoint positioning is a sine signal. The problem I have is that our algorithm does not cling orbital, although it has a sine shape but is late and the amplitude is much different from the setpoint (illustrated below). I have attached the VI in link below.

Please help. Thank you very much

Hinhminhhoa.png

0 Kudos
Message 1 of 3
(1,593 Views)
Solution
Accepted by topic author Minho123

Hi Minho,

 

from that image it seems you forgot to set resonable PID gains!?

 

How did you determine PID gains?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(1,537 Views)

Thanks for your help
I just use one loop for position control, and adjust PID gains. And I have result:

1Hz_50do_2_0_0.2.png

0 Kudos
Message 3 of 3
(1,498 Views)