next up previous contents index
Next: Debugging Tasks Up: A Template Task Previous: The HELP file   Contents   Index

Checker File

The checker file is optional. If it does not exist, SIC will create one writing all the task input variables in the order in which they have been defined.

The checker file is another SIC procedure containing only TASK$\backslash$ and SIC$\backslash$ commands, which tests the validity of the input parameters (to avoid submission of tasks with bad parameters), and writes the parameters. Checking is optional and can be done using SIC facilities. All parameters are known SIC variables. Writing is done using command TASK$\backslash$WRITE, and the ordering must match the source code. The task is initiated by the TASK$\backslash$GO command.

!
! Combine.CHECK
SIC\IF (FUNCTION$.EQ."ADD") THEN
    SIC\SAY "Computing X_NAME = -
    'Y_FACTOR$'*Y_NAME + 'Z_FACTOR$'*Z_NAME + 'OFFSET$'"
SIC\ELSE IF (FUNCTION$.EQ."DIVIDE") THEN
    SIC\SAY "Computing X_NAME = -
    'Y_FACTOR$'*Y_NAME / 'Z_FACTOR$'*Z_NAME + 'OFFSET$'"
SIC\ELSE IF (FUNCTION$.EQ."MULTIPLY") THEN
    SIC\SAY "Computing X_NAME = -
    'Y_FACTOR$'*Y_NAME * 'Z_FACTOR$'*Z_NAME + 'OFFSET$'"
SIC\ELSE
    SIC\SAY "Invalid operation 'FUNCTION$'"
    SIC\RETURN   ! Return without a GO command : no submission
SIC\ENDIF
!
TASK\WRITE Z_NAME$
TASK\WRITE Z_FACTOR$
TASK\WRITE Z_MIN$
TASK\WRITE Y_NAME$
TASK\WRITE Y_FACTOR$
TASK\WRITE Y_MIN$
TASK\WRITE X_NAME$
TASK\WRITE BLANKING$
TASK\WRITE OFFSET$
TASK\WRITE FUNCTION$
TASK\GO                     ! Effectively RUNs or SUBMITs the task.



Gildas manager 2014-07-01