beautypg.com

Chapter 1: introduction, 1 features of catc scripting language, Chapter 1 – Teledyne LeCroy Protocol Analyzers File-Based Decoding User Manual User Manual

Page 7: Introduction

background image

File-based Decoding User Manual

Chapter 1: Introduction

LeCroy Corporation

1

Chapter 1: Introduction

CATC Scripting Language (CSL) was developed to create scripts that would allow users
to perform file-based decoding with all LeCroy analyzers. CSL is used to edit
CATC Decode Scripting (CDS) files, which are pre-written decoder scripts supplied by
LeCroy. These script-based decoders can be modified by users or used as-is.
Additionally, users can create brand new CDS files.

This document includes the following analyzer-specific contents:

Appendix A: PETracer™ Decoder Script Files (for the PETracer product)

Appendix B: Bluetooth

Decoding scripts for analyzers are located in the /Scripts sub-directory below the

application directory. These scripts are tools to decode and display transactions. Users
can also add entirely new, customized decoders to fit their own specific development
needs. The analyzer application looks in the /Scripts directory and all its

sub-directories 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
should 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.

1.1 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.

Script-based decoding: Used to create built-in script-based decoders for analyz-
ers.

Custom decoding: May be used to write custom decoders.

General purpose: Is integrated in a number of LeCroy products.