{"id":13271,"date":"2022-07-26T13:37:17","date_gmt":"2022-07-26T18:37:17","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/?p=13271"},"modified":"2024-03-04T15:22:13","modified_gmt":"2024-03-04T20:22:13","slug":"cyberapps-cafunctions-explained","status":"publish","type":"post","link":"https:\/\/cyflex.com\/index.php\/cyberapps-cafunctions-explained\/","title":{"rendered":"CyberApps caFUNCTIONS explained"},"content":{"rendered":"<h2>caLoad<\/h2>\n<p>This command:<\/p>\n<ul>\n<li>Checks if another CyberApp is registered<\/li>\n<li>Checks if the cyber_labels appropriate to this application have been loaded<\/li>\n<li>Loads the specified Cyberapp, executes one time step, and goes into the paused state.<\/li>\n<\/ul>\n<h4>\u00a0Usage:<\/h4>\n<pre>$ caLoad CyberCarPTGEM<\/pre>\n<hr \/>\n<h2>caRun<\/h2>\n<p>This command:<\/p>\n<ul>\n<li>Sends a config event to the CyberApp process to put it into RUNNING state.\u00a0<\/li>\n<li>Is valid only in the PAUSED state.<\/li>\n<\/ul>\n<h4>Usage:<\/h4>\n<pre>$ caRun<\/pre>\n<hr \/>\n<h2>caPause<\/h2>\n<p>This command:<\/p>\n<ul>\n<li>Sends a config event to the CyberApp process to put it into PAUSED state.<\/li>\n<li>Is valid only in the RUNNING state.<\/li>\n<\/ul>\n<h4>Usage:<\/h4>\n<pre>$ caPause<\/pre>\n<hr \/>\n<h2>caStop<\/h2>\n<p>This command:<\/p>\n<ul>\n<li>Sends a config event to the CyberApp process to cause it to clean up and exit<\/li>\n<li>Restores the following test environment variables to their original state &#8211; EngCtrlMode, Speed_TR, Torque_TR, Throttle_OL, Dyno_OL, Throttle_MD, Dyno_MD<\/li>\n<li>Is valid in all states (CONFIGURING, PAUSED, and RUNNING).\u00a0<\/li>\n<\/ul>\n<h4>Usage:<\/h4>\n<pre>$ caStop<\/pre>\n<h2><strong>Important note about the caStop command: <\/strong><\/h2>\n<p><strong>A bug, discovered in late 2021, prohibited the restoration of the test environment, which was specific to the old control task. Users of CyberApps and the new control task will notice a change in behavior as they no longer fall into the same code.\u00a0 Calling caStop, either from a gp_test or the command line, will result in the model stopping after a short period of time, and the restoration of the test environment variables mentioned above, as they existed before the model was started.\u00a0 <\/strong><\/p>\n<hr \/>\n<h2>caComponent<\/h2>\n<p>This command:<\/p>\n<ul>\n<li>Sends an event to CyberServer to download a component specification to CyberApp process<\/li>\n<\/ul>\n<h4>Usage:<\/h4>\n<pre>$ caComponent axle FILENAME\r\n\r\n$ caComponent wheel FILENAME<\/pre>\n<p><strong>Note:<\/strong> The second argument in the command string cannot exceed 43 characters.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>caLoad This command: Checks if another CyberApp is registered Checks if the cyber_labels appropriate to this application have been loaded Loads the specified Cyberapp, executes one time step, and goes into the paused state. \u00a0Usage: $ caLoad CyberCarPTGEM caRun This command: Sends a config event to the CyberApp process to put it into RUNNING state.\u00a0 [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-13271","post","type-post","status-publish","format-standard","hentry","category-did-you-know"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/posts\/13271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"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=13271"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/posts\/13271\/revisions"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=13271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/categories?post=13271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/tags?post=13271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}