less than 1 minute read

PID Tuner
PID Tuner (FOPDT Model Generation and PID Tuning).

PID Tuner Instantiation Example

import pypidtune

pid_tuner = pypidtune.PIDTuner(
    pid_type="pid",
    pid_form="dependent",
    pid_time_units="minutes",
    init_model_gain=3.0,
    init_model_tc=60.0,
    init_model_dt=15.0,
    init_model_bias=10.0,
    default_csv_sep=";",
)
pid_tuner.root.mainloop()
pid_tuner.tune_pid()

In this example:

  • pid_type is set to ‘pid’, specifying the type of PID controller.
  • pid_form is set to ‘dependent’, indicating the PID controller form.
  • pid_time_units is set to ‘minutes’, specifying the time units used in the PID controller.
  • init_model_gain is set to 3.0, providing an initial gain value for the process model.
  • init_model_tc is set to 60.0, setting the initial time constant of the process model.
  • init_model_dt is set to 15.0, initializing the dead time of the process model.
  • init_model_bias is set to 10.0, setting the initial bias of the process model.
  • default_csv_sep is set to “;”, specifying the separator for CSV files.