compvar

Purpose:

Process user-defined expressions created by the gen_labels task

Enter:

compvar <registered_name> <priority> <1 to 3 process intervals> [+c] &

Where:

registered_name

Specify the registered name of task

priority

Specify the task’s system priority.

process_intervals

Specify the number of process intervals.

+c

Optional; specify +c to indicate a critical task.

Example:

compvar Compvar 18 FAS MED SLO +c &

Notes:

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.

This process is normally started from the ‘go.scp’ startup script and is usually run as a critical task which will cause a watchdog shutdown if it fails.

Multiple instances of “compvar” may be started to handle multiple spec files. Normally, there is a 1-to-1 pairing of an instance of “compvar” with a spec file. The pairing is accomplished through the “registered name”. The “registered name” is a spawning argument for “compvar” and is placed in the corresponding spec file following the macro “@REG_NAME”.

See Also:

gen_labels, Variables, Units, and Computed Expressions, Creating User Computations and User Variables