Control systems Blockset

Scilab and Xcos were initially thought as a control system design and analysis tools.
It has been leveraged in many other fields, but it remains a tool taylored to control needs.
As such, you can establish your control strategy by simulating your system in open and closed loop.
Here is a perfect example of a simple physical system regulated by a PID controller:

water-tank