I do not know if this is the right place to ask. I am trying my best to implement a PI compensator for an integrator plant using a Micro-controller. Simulation in Matlab gets me a good result. But in real life, the digital controller lags and fails to track the input signal perfectly. Used...