The model buit by NXP GFLIB_ControllerPIp ,as shown Part B in the fig. 1:
Fig.1
The model buit by PI module from Matlab/Simulink,As shown Part A in the Fig. 1
The analysis of simuliation result as shown below:
why the result is arisen?I Cannt resolve the question,who can help me......
Solved! Go to Solution.
Hi Eden Li,
The model used in GFLIB_ControllerPIp does not take into account the Ts/2 factor for discrete time domain trasformation using the bilinear method. This factor is transferred into the Integral gain to simplify the mathematical computations.
Therefore, if you implement your own controller in Simulink, just modify the Gain Value for the Discrete-Time Integrator to 2/(simulation sample time). This way you will get the same output as the GFLIB_ControllerPIp.
The other way around would be consider Ts/2 factor when computing the GFLIB_ControllerPIp.s32IntegGain.
Hope this helps!
Daniel
Hi Eden Li,
The model used in GFLIB_ControllerPIp does not take into account the Ts/2 factor for discrete time domain trasformation using the bilinear method. This factor is transferred into the Integral gain to simplify the mathematical computations.
Therefore, if you implement your own controller in Simulink, just modify the Gain Value for the Discrete-Time Integrator to 2/(simulation sample time). This way you will get the same output as the GFLIB_ControllerPIp.
The other way around would be consider Ts/2 factor when computing the GFLIB_ControllerPIp.s32IntegGain.
Hope this helps!
Daniel
Thank you very much!