
Commands - 126
STOP INP
Tasking Statement
SYNTAX: STOP INP n [,n1] [,n2]
PURPOSE: To disable one or m ore IN P tasks declared by the ON INP statement.
REMARK S: The task parameters are defined by the ON INP statement. STOP IN P deactivates the task. You
may specify more than one task parameter so that several tasks may be stopped simultaneously.
NOTE: STOP INP is only executed after a START IN P has been executed.
RELATED: START INP, ON INP
See the Multitasking Chapter for more information.
EXAMPLE: This demonstration program can be expanded to do more complex tasks. The state of the input lines
are printed by line 40. After 10 seconds, the task is disabled. After 30 seconds it is enabled again.
10 CLEAR TICK
20 ON INP 0,3,7,5 GOSUB 80
30 START INP 0
40 PRINT BIN$(INP(0))
50 DELAY .25
60 IF (TICK(0) > 10)AND(TICK(0)< 30) THEN STOP INP 0 ELSE START INP 0
70 GOTO 40
80 PRINT "match"
90 RETURN
ERROR: < Data negative> – for n
< Data out of range> – if n > 7
Comentarios a estos manuales