CATC Scripting Language (CSL) was developed to create scripts that would allow users to do file-based decoding with Teledyne LeCroy (formerly CATC) USB analyzers. CSL is used to edit CATC Decode Scripting (CDS) files. Teledyne LeCroy analyzers are equipped with built-in decoders in addition to script-based decoders that can be modified by the users or implemented as-is. Decoding scripts for analyzers are distributed in the \LeCroy\USB Protocol Suite\Scripts directory. These scripts are tools to decode and display transactions. Users can also add entirely new, customized decoders.
Included with the USB Protocol Suite are USB decoder scripts for many of the USB classes, as described in the USB specification. They are located in the same \LeCroy\USB Protocol Suite\Scripts directory and are identifiable by the .dec and .inc exten- sions. 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 application looks in this \Scripts directory and automatically loads all of the .dec files that it finds. To prevent a particular decoder from being loaded, changed 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: Integrated in a number of Teledyne LeCroy products.