What a single expression states



next up previous contents
Next: Structure of an Up: AP Algorithm Basics Previous: AP Algorithm Basics

What a single expression states

An AP would interpret the algorithm in figure (gif) as ``in order to recommend any repetition rate higher than ZERORATE (0 Hz), four devices (3 ALINE Protection Ion Chambers and the PIC cable) must all be good; if they aren't, stop, and simply recommended ZERORATE to the Supervisor. However if they are good, at least the next rate up (in this case LIMIT_HI) may be recommended. Before recommending LIMIT_HI, see if any rate higher than it may be recommended, to do that check PICS.AB01.101."FULLRATE" == "OK". Again, if that equality is not true stop and recommend LIMIT_HI, otherwise try the next rate up - FULLRATE. There is no condition for FULLRATE (since there is no rate higher than it) so it always succeeds. So if PICS.AB01.101."FULLRATE" == "OK" the recommended rate will be FULLRATE.''

This testing scheme, ``if true go on, if not stop'' has been called transgressive logic by the MPS group, since the conditional clause causes the immediately preceding label to be asserted if it is false.



SLAC Controls Software
Fri Nov 4 11:47:17 PST 1994