LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using PID with a quadrature encoder to control angle

Hello,

my team is trying to use a PID with a quadrature encoder to control how much our robot turns. 

Does anyone have any example code we could use to start? Note: We don't have NI-DAQmx.

0 Kudos
Message 1 of 2
(2,132 Views)

Hi Glados,

 

use a PID with a quadrature encoder to control how much our robot turns.

LabVIEW comes with a huge library of example VIs, there are also examples explaining the usage of the PID function…

 

- You have measurement signal (aka process value aka pv), and you have an output signal. Now you should determine some PID gains: have you heard of Ziegler-Nichols?

- As your robot seems to rotate you might think about what happens when (and if) you wrap the pv at 360° and how to handle that…

Best regards,
GerdW


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