03-04-2022 10:28 AM
Hi,
I'm currently tuning my 12V Geared DC Motor. I noticed whilst tuning my PID stuck to my setpoint (1 rev/s) in the counting up direction. However, when I changed the direction of the motor the motor doesn't stick to the set point and drops to around -1.2 rev/s. I think there's a mistake somwhere in the code but I've tried changing to constants but no luck.
03-04-2022 12:44 PM
Hi ar,
@ar38160 wrote:
I think there's a mistake somwhere in the code
Yes, I think that's the reason, too!
Unfortunately you didn't attach any code. (Remember: we cannot run/edit/debug images with LabVIEW!)
03-04-2022 12:49 PM
Hi,
I've attached the code below. I've been using the following PID gains: P = 0.400, I = 0.004, D =0.001
Thanks
03-04-2022 01:02 PM
Hi ar,
I don't have hardware with me to test your VI, but can give some suggestions and questions: