Chapter 7
RAPID!
Commands
4460 GSM System Option and 4468 EDGE System Option
Version 12.20
275
– compOperator := < | <= | = | >= | >
–
boolFct
is the return value of a boolean function.
Example:
(Country$="UK") AND (NetworkPrefix>=262)
In case that string variable
Country$
equals "UK" and at the same time the
numeric variable
NetworkPrefix
is equal to or greater than 262, then this
boolean expression will deliver 1 as the result. In any other case, the result deliv-
ered will be 0.
Commands
The language elements of RAPID! are BASIC commands and BASIC functions.
In order to access the internal registers of the 4400, the SCPI commands are
available which are described in detail in section
– Commands make up a RAPID! program. They are used to tell the 4400 what
it is to do.
– Functions perform specific predefined tasks and provide values, that can be
used within any RAPID! program.
– In BASIC, you may place a single command in a program line. However,
placing just a single function in a program line will lead to an error.
Overview
Dependent on their general functions, the BASIC commands of RAPID! are subdi-
vided into six groups:
–
are used to control the overall aspects of a program.
Typical general commands are e.g. CHAIN, REM, END, WAIT or STOP.
–
control the screen output of the 4400. They comprise CLS,
TEXTATTR, LOCATE, INPUT, PRINT/OUTPUT and SOFTKEYS.
–
Commands related to variables, procedures and functions
GLOBAL, VARIABLE, ERASE, SUB, FUNCTION.
–
determine the flow of the program. There are two sorts
of control commands: loops (FOR-NEXT, DO LOOP, WHILE, UNTIL) and condi-
tions (IF, CASE).
–
, such as GOTO, GOSUB and ON ERROR allow to change
the continuous sequential flux of a program and to jump to specific areas of
a program.
–
Commands for input/output handling
allow special input/output tasks. They
are OPEN, CLOSE, INPUT, PRINT and OUTPUT.
NOTE
A boolean expression always delivers either number 0 (for false) or 1 (for true)
as the result. You may perform arithmetic operations with these results.