evaluate

Purpose:

Process user-defined expressions

Enter:

evaluate <reg_name> <spec_file> <priority> <interval> [+c] &

Where:

reg_name

Specify the registered name.

spec_file

Specify the specification filename.

priority

Specify the task priority.

interval

Specify the interval, used for scheduler only

+c

Optional. Specify this flag to indicate a critical task.

Example:

evaluate Eval_crt /specs/eval.123 18 1000 +c &

Notes:

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 “evaluate” may be started to handle multiple spec files.  Normally, there is a 1-to-1 pairing of an instance of “evaluate” with a spec file.  
The pairing is accomplished through the “registered name”.  The “registered name” is a spawning argument for “evaluate” and is placed in the corresponding 
spec file following the macro “@REG_NAME”.  
The spec file has the format:
# event_name   expression_file  
tmr-100        /specs/my_expr.100  
tmr-1000     /specs/my_expr.1000

See Also: