Chapter 1: introduction, 1 introduction, Hapter – Teledyne LeCroy FireInspector - File Based Decoding User Manual
Page 7: Ntroduction

1
CATC S
CRIPTING
L
ANGUAGE
1.0
C
HAPTER
1
Reference Manual
Introduction
C
HAPTER
1: I
NTRODUCTION
CATC Scripting Language (CSL) was developed to create scripts that allow users
to do file-based decoding with CATC analyzers. CSL is used to edit CATC Decode
Scripting (CDS) files, which are pre-written decoder scripts supplied by CATC.
These script-based decoders can be modified by the users or used as-is. Additional-
ly, users can create brand new CDS files. This document describes the basics of
CSL syntax and also defines FireInspector-specific contexts and primitives.
Decoder scripts for FireInspector are distributed in the
\Scripts
folder of the
FireInspector installation directory. They are identifiable by the .dec extension.
These scripts are tools to decode and display transactions. Users can also add
entirely new, customized decoders to fit their own, specific development needs.
FireInspector looks in the
\Scripts
directory and automatically loads all of the
.dec files that it finds. To prevent a particular decoder from being loaded, change its
extension to something other than .dec or move it out of the
\Scripts
directory.
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 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.
•
Used to create built-in script-based decoders for analyzers.
•
May be used to write custom decoders.
•
General purpose -- is integrated in a number of CATC products.