Chapter 6 RAPID!
RAPID! syntax
WCDMA Options Version 6.20
155
– StringArray_of_Dimension_2$(1,1) defines a valid string variable
array. However, due to the length of its name, RAPID! will not distinguish it
from
StringArray_of_Dimension_1$(1,1).
Physical units
Numeric variables and expressions can have physical units. Depending on the
group they belong to, the units of those variables and expressions may be:
Notes
– Percent values are treated as unit-less when arithmetical operations are
performed.
– Additions, subtractions and comparisons may only be performed within a
group as specified above.
– Divisions through a value containing a physical unit of the same group will
lead to a result without physical unit.
– When multiplying values, only one factor may have a physical unit.
Constants Constants are used to store numeric or string values, which need to be kept
unchanged during runtime of a RAPID! program.
Typical examples are common mathematical constants like ‘pi’, the power loss
factor of a cable used for testing or the type code of a mobile phone.
Numeric constants
A numeric constant is a decimal, binary, octal or hexadecimal value with an
optional physical unit:
decimal | binary | octal | hexadecimal [physical
unit]
Group Name Physical units
Frequency Hz, kHz, MHz, GHz
Power dB, dBm, μW, mW, W
Angles DEG or °, RAD
Percent %
Type of
constant
Syntax Example Limits
Decimal {0...9} [.{0..9}] 123.456 –1.79769313486232E308 to
–4.94065645841247E–324
for negative values and from
4.94065645841247E–324 to
1.79769313486232E308 for
positive values
Binary &B {0...1} &B100111011 2 to the power of 32 (2^32)