The SENVAL function returns the last scored value from the function expression or user-written subroutine associated with the EVALUATE argument on SENSOR/
id. See the
SENSOR statement for more information.
Format
SENVAL(id)
Arguments
id | An integer specifying the identification number of the SENSOR. |
Caution: | If the SENSOR/id does not have the EVALUATE argument, SENVAL(id) returns zero. |
Examples
VARIABLE/1, FUNCTION=SENVAL(100)
SENSOR/100, EQ, VALUE=0
, FUNCTION=AZ(22,11)-PI/2/
, EVALUATE=SENVAL(100) +1
This SENSOR statement counts the number of times function AZ(22,11) passes through

/2. The VARIABLE statement defines a variable equal to the count.