{"id":1966,"date":"2019-02-12T01:48:24","date_gmt":"2019-02-12T01:48:24","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/19-variables-and-computations\/"},"modified":"2026-02-25T14:27:49","modified_gmt":"2026-02-25T19:27:49","slug":"2-variables-and-computations","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/","title":{"rendered":"2: Variables and Computations"},"content":{"rendered":"<table style=\"width: 100%; height: 972px;\">\n<tbody>\n<tr style=\"height: 24px;\">\n<th style=\"height: 24px; width: 11.5244%;\">Command<\/th>\n<th style=\"height: 24px; width: 87.8921%;\">Purpose<\/th>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/alias_labels\/\">alias_labels<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Process a specification file to define alias-label mappings in CyFlex.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/arr_size\/\">arr_size<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Determine the size of array variable or a particular dimension of the variable.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/arr_specs\/\">arr_specs<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Process array specifications to configure array variables.<\/td>\n<\/tr>\n<tr style=\"height: 12px;\">\n<td style=\"height: 25px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/compvar\/\">compvar<\/a><\/td>\n<td style=\"height: 25px; width: 87.8921%;\">\n<p>Evaluate user-defined expressions for computed variables, processing them based on specified intervals and events.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 12px;\">\n<td style=\"height: 28px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/cvar\/\">cvar<\/a><\/td>\n<td style=\"height: 28px; width: 87.8921%;\">\n<p>Create and initialize variables in the CyFlex system from the command line or scripts, supporting data types such as REAL, INT, LOGICAL, and STRING.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/em_ave\/\">em_ave<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Compute and print the mean, standard deviation, minimum, and maximum values for specified input variables over a given sampling interval.<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/ext_labels\/\">ext_labels<\/a><\/td>\n<td style=\"width: 87.8921%;\">Extract unique labels from filenames in a specified directory, sort them, and write the result to a file.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/garr\/\">garr<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Display array variables from shared memory with options to format output for quiet mode, units, and delimiters.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/garr_all\/\">garr_all<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Display all active array variables in the CyFlex system including their values or filter them based on a provided string pattern.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/gen_labels\/\">gen_labels<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Process and configure general usage variables based on specification files.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/gen_solver\/\">gen_solver<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Find the roots of a specified equation in CyFlex.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/medor_set\/\">MEDOR_set<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Update a composition variable based on concentrations from real variables specified in a file, handle event synchronization, and write an output file for database loading.<\/td>\n<\/tr>\n<tr style=\"height: 47px;\">\n<td style=\"width: 11.5244%; height: 47px;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/min_max\/\">min_max<\/a><\/td>\n<td style=\"width: 87.8921%; height: 47px;\">Perform an operation, such as finding the minimum or maximum or label that holds the minimum or maximum value and updating a requested CyFlex variable with the value or CyFlex label.<\/td>\n<\/tr>\n<tr style=\"height: 23px;\">\n<td style=\"width: 11.5244%; height: 23px;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/min_max_specs\/\">min_max_specs<\/a><\/td>\n<td style=\"width: 87.8921%; height: 23px;\">Specify the minimum\/maximum task configuration.<\/td>\n<\/tr>\n<tr style=\"height: 12px;\">\n<td style=\"height: 37px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/override_mon\/\">override_mon<\/a><\/td>\n<td style=\"height: 37px; width: 87.8921%;\">\n<p>Monitor the &#8216;overrideOFF&#8217; event and reset overridden variables in shared memory by restoring their original values.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"height: 48px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/override_status\/\">override_status<\/a><\/td>\n<td style=\"height: 48px; width: 87.8921%;\">Check the override status of a specified variable in CyFlex.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/release_compvar\/\">release_compvar<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Set an event to release a specified compvar instance, allowing it to clean up resources and exit.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/release_evaluate\/\">release_evaluate<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Set an event to release the specified evaluate instance in CyFlex.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 10px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/restore_array_var\/\">restore_array_var<\/a><\/td>\n<td style=\"height: 10px; width: 87.8921%;\">\n<p>Restore the contents of a specified CyFlex array variable from a disk file.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/rstr_save_dat\/\">rstr_save_dat<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Restore variables from disk to shared memory for CyFlex.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/rvar\/\">rvar<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Deactivate variables that were created by the cvar application in CyFlex.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/sarr\/\">sarr<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Set array variable elements to a specified value based on provided label and dimensions.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/sarru\/\">sarru<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Set units for an array variable if a units string is provided or display the current units and units code.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/save_list\/\">save_list<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Specify variables to maintain on disk for the CyFlex system.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/save_status\/\">save_status<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Save CyFlex variables on disk.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/set_active\/\">set_active<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Set the active flag for a specified CyFlex input variable in the transfer layer.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/set_alias\/\">set_alias<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Create or modify an alias label to point to a specified target variable in CyFlex.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/set_inactive\/\">set_inactive<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Set the active flag to FALSE for a specified label in the CyFlex transfer layer for Analog Input (AI), Frequency Input (FI), Counter Input (CI), or Digital Input (DI) variables.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/show_gen\/\">show_gen<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Display details of computed strings in the system and display suggestions for appropriate file sections for computations.<\/td>\n<\/tr>\n<tr style=\"height: 48px;\">\n<td style=\"height: 48px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/sovr\/\">sovr<\/a><\/td>\n<td style=\"height: 48px; width: 87.8921%;\">Set the override mode for a specified variable and optionally set its value if the master override is enabled.<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 35px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/spcl_chans\/\">spcl_chans<\/a><\/td>\n<td style=\"height: 35px; width: 87.8921%;\">Configure special channels based on a specification file for engine performance parameters.<\/td>\n<\/tr>\n<tr style=\"height: 8px;\">\n<td style=\"height: 10px; width: 11.5244%;\"><a href=\"svar\">svar<\/a><\/td>\n<td style=\"height: 10px; width: 87.8921%;\">\n<p>Set the value of specified variables in the system, supporting REAL, REAL_ARRAY, INTEGER, INTEGER_ARRAY, LOGICAL, LOGICAL_ARRAY, STRING, and STRING_ARRAY types, with checks for dimensional consistency and restrictions on certain variables.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 14px;\">\n<td style=\"width: 11.5244%; height: 31px;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/tcomp\/\">tcomp<\/a><\/td>\n<td style=\"width: 87.8921%; height: 31px;\">\n<p>Display the number of variables in each memory area that have been assigned an index for history parameters.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px; width: 11.5244%;\"><a href=\"varx_specs\">varx_specs<\/a><\/td>\n<td style=\"height: 24px; width: 87.8921%;\">Configure real variable transfers for the var_transfer program by processing a specification file.<\/td>\n<\/tr>\n<tr style=\"height: 12px;\">\n<td style=\"height: 43px; width: 11.5244%;\"><a href=\"var_transfer\">var_transfer<\/a><\/td>\n<td style=\"height: 43px; width: 87.8921%;\">Transfer and convert values between CyFlex variables, applying gain, bias, and recursive filtering as configured.<\/td>\n<\/tr>\n<tr style=\"height: 12px;\">\n<td style=\"height: 35px; width: 11.5244%;\"><a href=\"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/write_array_var\/\">write_array_var<\/a><\/td>\n<td style=\"height: 35px; width: 87.8921%;\">\n<p>Use this utility to write the contents of a specified array variable to a disk file in \/data\/&lt;label&gt;.array.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Command Purpose alias_labels Process a specification file to define alias-label mappings in CyFlex. arr_size Determine the size of array variable or a particular dimension of the variable. arr_specs Process array specifications to configure array variables. compvar Evaluate user-defined expressions for computed variables, processing them based on specified intervals and events. cvar Create and initialize variables [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":557,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1966","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1966","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=1966"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1966\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/557"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=1966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}