/// <summary>
 /// Optimize a controller for a specific control loop
 /// </summary>
 /// <param name="control_loop">The PT2-control (with damping bigger 1) loop in your Schematic</param>
 /// <param name="controller">The P-controller you want to optimize</param>
 public static void Controller(PT2_wdb1 control_loop, Controller_P controller)
 {
     controller._Vr = control_loop._T1 / (2 * control_loop._T2*control_loop._Vs);
     controller.recalc_coefficients();
 }
 /// <summary>
 /// Optimize a controller for a specific control loop
 /// </summary>
 /// <param name="control_loop">The IT1-control loop in your Schematic</param>
 /// <param name="controller">The P-controller you want to optimize</param>
 public static void Controller(IT1 control_loop, Controller_P controller)
 {
     controller._Vr = control_loop._Ti/(2*control_loop._T2);
     controller.recalc_coefficients();
 }