Pausing And Restarting Waits; Canceling Waits; Using Waits - Limitations - AMX NETLINX PROGRAMMING LANGUAGE Manual

Programming language
Table of Contents

Advertisement

Language Elements
WAIT_UNTIL <condition 1> 'FIRST WAIT'
{
}

Pausing and restarting Waits

The following commands relate to pausing and restarting waits.
Pausing and Restarting Waits
PAUSE_WAIT
RESTART_WAIT
PAUSE_ALL_WAIT &
RESTART_ALL_WAIT

Canceling Waits

Canceling Waits
CANCEL_WAIT /
CANCEL_WAIT_UNTIL
CANCEL_ALL_WAIT /
CANCEL_ALL_WAIT_UNTIL

Using Waits - Limitations

38
(* FIRST WAIT statements *)
WAIT_UNTIL <condition 2> 'SECOND WAIT'
{
(* SECOND WAIT statements *)
}
PAUSE_WAIT puts a scheduled wait on hold. The wait being paused is identi-
fied by the parameter name. The wait timer stops counting down until it is
resumed with a RESTART_WAIT command. Here's a syntax sample:
PAUSE_WAIT '<name>'
RESTART_WAIT resumes the countdown for a wait suspended with
PAUSE_WAIT. The wait to be restarted is identified by the parameter name.
RESTART_WAIT '<name>'
PAUSE_ALL_WAIT and RESTART_ALL_WAIT commands are used to pause or
restart all scheduled waits, regardless of whether or not they are named. They
have no parameters.
PAUSE_ALL_WAIT
RESTART_ALL_WAIT
CANCEL_WAIT and CANCEL_WAIT_UNTIL removes the wait specified by
name from the appropriate wait list. The syntax:
CANCEL_WAIT '<name>
CANCEL_WAIT_UNTIL '<name>'
CANCEL_ALL_WAIT and CANCEL_ALL_WAIT_UNTIL cancels all waits
(named or unnamed) from the appropriate wait list. The syntax:
CANCEL_ALL_WAIT
CANCEL_ALL_WAIT_UNTIL
References to
variables are not allowed within waits (
STACK_VAR
variables that cease to exist when the block in which they are declared is exited).
Variable copies are made of functions and subroutine parameters. This can have speed/
execution penalties.
A
is not allowed within a
RETURN
A
or
cannot appear within a
BREAK
CONTINUE
the
.
WAIT
The code within a
cannot reference a function or subroutine array parameter whose
WAIT
bounds are unspecified.
within functions and subroutines.
WAIT
if it takes execution out of the scope of
WAIT
NetLinx Programming Language Reference Guide
are temporary
STACK_VAR

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netlinx studio 2

Table of Contents