modelica-deprecated / Modelica_Synchronous

Free (standard conforming) library to precisely define and synchronize sampled data systems with different sampling rates. It provides convenient to use blocks to utilize the new synchronous language elements introduced in Modelica 3.3.
11 stars 7 forks source link

discrete PI Controller #26

Closed vwaurich closed 6 years ago

vwaurich commented 6 years ago

If you compare the output of Modelica_Synchronous.RealSignals.Periodic.PI on a clocked signal with the output from the continous PI from MSL on the continous signal, it differs a lot.

I suggest to add interval() as a factor: x = previous(x) + u / Td * interval(); as this is the delta(time) from applying the difference quotient. Please try the attached model: testPIController.zip

tbeu commented 6 years ago

@vwaurich See #28 for @MartinOtter's reply.

MartinOtter commented 6 years ago