Elveflow
SDK Tutorial Part 2: Automatic Control
In this second part of the tutorial, the basic process for setting up an automatic control is shown, manually first and with our tools after. It is assumed that you are familiarized with all the basic operating of your system and that you have correctly set up the SDK environment as it was shown in the first chapter of the tutorial. If you didn’t see it before, please, go for it first.
The purpose of this Jupyter Notebook is to work as a quick guide to the SDK development with the Elveflow products. The process shown using a OB1 Pressure Controller with a FS5D Flow Sensor, but it works also for any other Elvesys product.
Also, before starting with this introduction, make sure you have read all the documentation related to your purchased products. Disregarding that information could increase the risk of damage to the equipment, or the risk of personal injuries. In case you don’t have a copy, you can download all the documents from our website.
The content of this chapter of the tutorial is the following:
- PI Controller
- PI basics
- PI software
- Parameters tuning
- SDK Remote PID Control
This tutorial has been written and tested using Windows 10, 64bits, Python 3.8.8, Jupyter Notebook 6.3.0 in October, 2021. The pressure controller is an OB1 MK3+ and the flow sensor a FS5D.
2.1 PI Controller
2.1.1 PI basics
The PI Controller or Proportional-Integrative Controller is a basic linear controller, yet powerful for lot of situations, which makes the output of the controlled system to follow a desired curve of values, called reference, and ensures that the system properly works and that it is stable for the operating expected situation.
To achieve this control of the system’s output, it takes the current system’s output value, calculates the difference to the reference (the desired output), which is called error, and makes some operations with it.
The operations for a basic PI Control are two: the proportional term calculus and the integrative term calculus.
- The proportional term corresponds to the current error multiplied by a proportional gain. The larger this gain is, the more aggressive the control will react. For an instant k: