{"id":3498,"date":"2019-02-12T16:09:17","date_gmt":"2019-02-12T16:09:17","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/19-variables-and-computations\/compvar\/"},"modified":"2025-08-26T11:50:23","modified_gmt":"2025-08-26T16:50:23","slug":"compvar","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/compvar\/","title":{"rendered":"compvar"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Evaluate user-defined expressions for computed variables, processing them based on specified intervals and events.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>compvar<\/strong> &lt;registered_name&gt; &lt;priority&gt; &lt;1 to 3 process intervals&gt; [+c] &amp;<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 88.79%;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td style=\"width: 35.77%;\">\n<p>registered_name<\/p>\n<\/td>\n<td style=\"width: 259.43%;\">\n<p>Specify the registered name of the task<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 35.77%;\">\n<p>priority<\/p>\n<\/td>\n<td style=\"width: 259.43%;\">\n<p>Specify the task&#8217;s system priority.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 35.77%;\">\n<p>process_intervals<\/p>\n<\/td>\n<td style=\"width: 259.43%;\">\n<p>Specify at least one process interval. Optionally specify a second and\/or third process interval.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 35.77%;\">\n<p>+c<\/p>\n<\/td>\n<td style=\"width: 259.43%;\">\n<p>Optional. Specify +c to indicate a critical task.<\/p>\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>compvar<\/strong> Compvar 18 FAS MED SLO +c &amp;<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>There may be many specification files like \/specs\/gen_labels.NNN, but only those which contain computed expressions require a copy of compvar to be running with the same registered name.<\/p>\n<p>This process is normally started from the &#8216;go.scp&#8217; startup script and is usually run as a critical task which will cause a watchdog shutdown if it fails.<\/p>\n<p>Multiple instances of &#8220;compvar&#8221; may be started to handle multiple spec files. Normally, there is a 1-to-1 pairing of an instance of &#8220;compvar&#8221; with a spec file. The pairing is accomplished through the &#8220;registered name&#8221;. The &#8220;registered name&#8221; is a spawning argument for &#8220;compvar&#8221; and is placed in the corresponding spec file following the macro &#8220;@REG_NAME&#8221;.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p><a href=\"\/index.php\/usage-help-manual\/2-variables-and-computations\/gen_labels\/\">gen_labels<\/a>, <a href=\"\/wp-content\/uploads\/CyFlex-Variables-Units-and-Computed-Expressions.pdf\">Variables, Units, and Computed Expressions<\/a>, <a href=\"\/wp-content\/uploads\/Creating-User-Computations-and-User-Variables.pdf\">Creating User Computations and User Variables<\/a><\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Evaluate user-defined expressions for computed variables, processing them based on specified intervals and events. Enter: compvar &lt;registered_name&gt; &lt;priority&gt; &lt;1 to 3 process intervals&gt; [+c] &amp; Where: registered_name Specify the registered name of the task priority Specify the task&#8217;s system priority. process_intervals Specify at least one process interval. Optionally specify a second and\/or third process [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1966,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3498","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3498","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=3498"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3498\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1966"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3498"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}