{"id":3721,"date":"2019-02-12T16:09:41","date_gmt":"2019-02-12T16:09:41","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/19-variables-and-computations\/gvar\/"},"modified":"2025-10-07T11:03:50","modified_gmt":"2025-10-07T16:03:50","slug":"gvar","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/11-utilities-and-user-commands\/gvar\/","title":{"rendered":"gvar"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Retrieve and display the value of a specified variable from shared memory in CyFlex.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>gvar<\/strong> &lt;variable_name&gt; [units]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 89.0927%;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr>\n<td style=\"width: 13.0081%;\">\n<p>variable_name<\/p>\n<\/td>\n<td style=\"width: 142.132%;\">\n<p>Specify the name of variable whose value to retrieve. A CSAR variable label may also be specified.<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 13.0081%;\">\n<p>units<\/p>\n<\/td>\n<td style=\"width: 142.132%;\">\n<p>Optional. Specify the retrieval units to attach to the variable name, for example: variable_name[units].<\/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>gvar<\/strong> engine_hours<br \/>\nThe above command gets the value of the variable engine_hrs.<\/p>\n<p><strong>gvar<\/strong> engine_hours [min]<br \/>\nThe above commend gets the value of the variable engine_hrs in units of minutes<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>The gvar command performs unit conversion checks if units are specified.<\/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\/svar\/\">svar<\/a>, <a href=\"\/wp-content\/uploads\/Array-Variables.pdf\">Array Variables<\/a><\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Retrieve and display the value of a specified variable from shared memory in CyFlex. Enter: gvar &lt;variable_name&gt; [units] Where: variable_name Specify the name of variable whose value to retrieve. A CSAR variable label may also be specified. units Optional. Specify the retrieval units to attach to the variable name, for example: variable_name[units]. Example: gvar [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1948,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3721","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3721","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=3721"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3721\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1948"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}