Plant model.
Quote from stefanorsa on January 12, 2026, 6:48 pmIn a control system, one has a plant model. For example, a PID regulator (implemented on an Arduino) is controlling the power of a heat radiator in a room. The goal is to keep a stable temperature while the temperature outside is changing. There is a thermal energy flow through the walls, and the room has some heat capacity.
So, we need to have a model for the temperature variation in the room, and we call that the plant model. The plant model should be written in Python.My idea is to develop a new component, called 'Plant model', that can handle this through:
- It has one or several inputs
- It has one or several outputs
- Inside the component (server), it communicates through tcp/ip with a client, and it is in the client that the Python code runs.Do people think this is a good idea? If so. I will try to develop it.
In a control system, one has a plant model. For example, a PID regulator (implemented on an Arduino) is controlling the power of a heat radiator in a room. The goal is to keep a stable temperature while the temperature outside is changing. There is a thermal energy flow through the walls, and the room has some heat capacity.
So, we need to have a model for the temperature variation in the room, and we call that the plant model. The plant model should be written in Python.
My idea is to develop a new component, called 'Plant model', that can handle this through:
- It has one or several inputs
- It has one or several outputs
- Inside the component (server), it communicates through tcp/ip with a client, and it is in the client that the Python code runs.
Do people think this is a good idea? If so. I will try to develop it.
Quote from arcachofo on January 12, 2026, 7:27 pmI think this could be done with scripts.
But why the plant model should be written in Python?
I think this could be done with scripts.
But why the plant model should be written in Python?
Quote from stefanorsa on January 12, 2026, 7:33 pmOn the client side you can use any language. I mainly wrote it, since I think most 'model people' I know use that.
On the client side you can use any language. I mainly wrote it, since I think most 'model people' I know use that.
Quote from stefanorsa on January 14, 2026, 8:18 pmI will try to implement this and see if it becomes any good.
I will try to implement this and see if it becomes any good.
