{"id":3430,"date":"2019-02-12T16:09:11","date_gmt":"2019-02-12T16:09:11","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/11-control-systems\/autotune\/"},"modified":"2025-08-28T13:35:37","modified_gmt":"2025-08-28T18:35:37","slug":"autotune","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/7-control-systems\/autotune\/","title":{"rendered":"autotune"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Initiate tuning of a specified PID loop using the Ziegler-Nichols method (closed loop version &#8211; with relay caused oscillations). Note that the length of time to autotune is dependent on the period of oscillation of the system. Ten to twenty oscillations will be required\u2026sometimes more if the system is not well behaved.<\/p>\n<p>If results are not achieved after some time period use the &#8216;abort_autotune&#8217; command to terminate the autotune session.<\/p>\n<p>When completed, the control task prints many items, including:<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Ultimate gain<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Number of cycles<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Period for cycles<\/p>\n<p>New gains will be suggested but not implemented.<\/p>\n<p>IMPORTANT: Before starting, make sure the controller output is near the midpoint of allowed values.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>autotune<\/strong> &lt;controller&gt;<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 100%;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td style=\"width: 12.9506%;\">\n<p>controller<\/p>\n<\/td>\n<td style=\"width: 86.9063%;\">\n<p>Specify the loop or controller to autotune:<\/p>\n<ul>\n<li>Specify a numeric index for the controller for which autotune is performed ONLY IF running the old ctrl_task<\/li>\n<li>Specify the loop name if running the new user_ctrl_task<\/li>\n<li>Specify the controller name if running the new eng_ctrl_task.\u00a0These must be spelled exactly though capitalization is not important.<br \/>\nDYNO<br \/>\nDYNO2<br \/>\nTHROTTLE<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>autotune\u00a0\u00a0 <\/strong>fuel_cooling<br \/>\nThis command starts the autotuning session for the fuel cooling user loop when running the new user control task.<\/p>\n<p><strong>abort_autotune<\/strong> fuel_cooling<br \/>\nThis command terminates the autotuning session and returns the controller to the PID control mode.<\/p>\n<p><strong>autotune <\/strong>Dyno<br \/>\nThis command starts the autotuning session for the dyno when using the new ctrl_task.<\/p>\n<p><strong>autotune<\/strong> 0<br \/>\nThis command starts the autotuning session for controller 0 when using the old ctrl_task.<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>Before starting, ensure the controller output is near the midpoint of allowed values. If autotuning does not complete as expected, use the abort_autotune command to terminate the session.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p><a href=\"https:\/\/cyflex.com\/wp-content\/uploads\/Autotuning-PID-Loops.pdf\">Autotuning PID Loops<\/a>, <a href=\"\/index.php\/usage-help-manual\/7-control-systems\/abort_autotune\/\">abort_autotune<\/a><\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Initiate tuning of a specified PID loop using the Ziegler-Nichols method (closed loop version &#8211; with relay caused oscillations). Note that the length of time to autotune is dependent on the period of oscillation of the system. Ten to twenty oscillations will be required\u2026sometimes more if the system is not well behaved. If results [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1958,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3430","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3430"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3430\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1958"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}