PID Loop Simulation

PID Loop Simulation - Messages

#1 Posted: 12/14/2012 3:58:28 PM
Gerry_Bush

Gerry_Bush

12 likes in 14 posts.

Group: User

Hello Everyone,

I have been using SMath Studio for a while now and have recently created a simulation of a control loop consisting of a first order process with deadtime and a PID controller.

I have tried to recreate an example I found in an Excel spreadsheet here.

What I have done seems to work, but I am wondering if there would be a better way to achieve the same results.

Does anyone have any improvements they can suggest?

Thank you.

Gerry Bush
PID_test.sm (50 KiB) downloaded 100 time(s).
#2 Posted: 12/14/2012 9:30:52 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

Wrote

Hello Everyone,

Does anyone have any improvements they can suggest?

Thank you.

Gerry Bush



You might consider transforming your system to a first order ODE system and using the plugin ODESolvers, Examples

I used the Runge-Kutta solver for non-linear dynamics (simple example attached)

Don't know if it would be an improvement, at least it is an alternative.

RK.sm (21 KiB) downloaded 91 time(s).
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
1 users liked this post
Fridel Selitsky 12/15/2012 5:31:00 AM
#3 Posted: 12/15/2012 6:08:21 PM
Gerry_Bush

Gerry_Bush

12 likes in 14 posts.

Group: User

Hi mkraska,

Thank you for your reply and your example.

I think I will try what you suggest. I have not used the ODESolvers plugin before so it will be a chance to learn something else.

Best regards,

Gerry_Bush
  • New Posts New Posts
  • No New Posts No New Posts