Appendix d: catc scripting language, D.1 values, D.2 literals – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 271: Integers, Values, Literals

Advertising
background image

255

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

D

User’s Manual

CATC Scripting Language

Appendix D: CATC Scripting Language

CATC Scripting Language (CSL) was developed to allow users to automate
test processes and provide textual output to suit specific needs. CSL is used
in Merlin’s Wand to write traffic-generating scripts, making it possible to
automate some Bluetooth command sequences. Scripts are written, saved,
and run using the Script Manager utility. Scripts’ output can be viewed in
the Script Log.

CSL is based on C language syntax, so anyone with a C programming
background will have no trouble learning CSL. The simple, yet powerful,
structure of CSL also enables less experienced users to easily acquire the
basic knowledge needed to start writing custom scripts.

Features of CATC Scripting Language

Powerful -- provides a high-level API to the Bluetooth stack while simultaneously
allowing implementation of complex algorithms.

Easy to learn and use -- has a simple but effective syntax.

Self-contained -- needs no external tools to run scripts.

Wide range of value types -- provides efficient and easy processing of data.

Integrated with over 100 commands -- includes commands for HCI, L2CAP, SDP,
RFCOMM, TCS, OBEX, data pipes, and the CATC Merlin Analyzer.

General purpose -- is integrated in a number of CATC products.

D.1 Values

There are five value types that may be manipulated by a script: integers,
strings, lists, raw bytes, and null. CSL is not a strongly typed language.
Value types need not be pre-declared. Literals, variables and constants can
take on any of the five value types, and the types can be reassigned
dynamically.

D.2 Literals

Literals are data that remain unchanged when the program is compiled.
Literals are a way of expressing hard-coded data in a script.

Integers

Integer literals represent numeric values with no fractions or decimal points.
Hexadecimal, octal, decimal, and binary notation are supported:

Advertising