5 constant declarations, 1 predefined constants, 2 constant definition examples – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual
Page 13: Constant declarations, Predefined constants, Constant definition examples, Constants in, 5constant declarations

LeCroy Corporation
UWBTrainer Exerciser - Generation Script Language Reference Manual
5
5
Constant Declarations
You can declare numeric script constants to use later in assignments or arithmetic operations.
Constants are DWORD (unsigned integer) values only.
5.1 Predefined Constants
For information about the predefined constants, see the genconstants.ginc file in the
Generation\Include folder in the Application directory.
5.2 Constant Definition Examples
Examples
Const
SOME_HEX_DATA =
0xAABBFFEE
# Define a hexadecimal constant.
Const
SOME_DEC_DATA =
12
# Define a decimal constant.
Const
"SOME DEC DATA" =
64
# Define a decimal constant.
Const
"Some Hex Data" =
0xCDCDBEBE
const
HDR_ERR_SIZE =
8
const
RATE_53MBS =
0
# The parser can use arithmetic operations in constant definitions.
const
TX_PAYLOAD_OFFSET =
15
*
8
# Payload offset(in bits) for
# the Tx frame
# Payload offset(in bits) for the Rx frame
const
RX_PAYLOAD_OFFSET = TX_PAYLOAD_OFFSET + HDR_ERR_SIZE
# Example of a complex name in an expression
const
MY_Data = ["Some Hex Data"] +
12