PROTOCOL SOLUTIONS GROUP 3385 SCOTT BLVD SANTA CLARA, CA 95054 CATC Scripting Language Reference Manual Manual Version 1.20 F
CHAPTER 3 Expressions CATC Scripting Language 6 CHAPTER 3: EXPRESSIONS An expression is a statement that calculates a value. The simplest type o
CHAPTER 3 Expressions CATC Scripting Language 7 x = 10 Value_of_x = select { x < 5 : "Less than 5"; x >= 5 : "Greater than
CHAPTER 4 Operators CATC Scripting Language 8 CHAPTER 4: OPERATORS An operator is a symbol that represents an action, such as addition or subtra
CHAPTER 4 Operators CATC Scripting Language 9 The associative operator () is used to group parts of the expression, forcing those parts to be ev
CHAPTER 4 Operators CATC Scripting Language 10 Operator Symbol Associativity += *= I= %= >>= <<= &= Right to left I= Ta
CHAPTER 4 Operators CATC Scripting Language 11 Operator Symbol Description Operand Types Result Types Examples Index Operator [ ] Index or
CHAPTER 4 Operators CATC Scripting Language 12 Operator Symbol Description Operand Types Result Types Examples Equality Operators == Equal I
CHAPTER 4 Operators CATC Scripting Language 13 Operator Symbol Description Operand Types Result Types Examples Bitwise Logical Operators ~ B
CHAPTER 4 Operators CATC Scripting Language 14 Operator Symbol Description Operand Types Result Types Examples Assignment Operators (continu
CHAPTER 4 Operators CATC Scripting Language 15
CATC Scripting Language Teledyne LeCroy Document Disclaimer The information contained in this document has been carefully checked and is believe
CHAPTER 5 Comments CATC Scripting Language for USB 16 CHAPTER 5: COMMENTS Comments may be inserted into scripts as a way of documenting what the
CHAPTER 5 Comments CATC Scripting Language for USB 17
CHAPTER 6 Keywords CATC Scripting Language for USB 18 CHAPTER 6: KEYWORDS Keywords are reserved words that have special meanings within the lang
CHAPTER 6 Keywords CATC Scripting Language for USB 19
CHAPTER 7 Statements CATC Scripting Language 20 CHAPTER 7: STATEMENTS Statements are the building blocks of a program. A program is made up of l
CHAPTER 7 Statements CATC Scripting Language 21 if ( 3 - 3 || 2 - 2 ) Trace ( "Yes" ); else Trace ( "No" ); will cause “No”
CHAPTER 7 Statements CATC Scripting Language 22 The example for ( x = 2; x < 5; x = x + 1 ) Trace ( x, "\n" ); would output 2 3
CHAPTER 7 Statements CATC Scripting Language 23 Trace ( HiThere() ); ... HiThere() { a = "Hi there"; return a; b = "Goodbye"
CHAPTER 7 Statements CATC Scripting Language 24 ... <last_statement>; } An example of a compound statement is { x = 2; x + 3; } It&apos
CHAPTER 7 Statements CATC Scripting Language 25
CATC Scripting Language Table of Contents iii TABLE OF CONTENTS Table of Contents . . ... ... ... ... ... ... ... ... ... ... . iii 1 Int
CHAPTER 8 Preprocessing CATC Scripting Language 26 CHAPTER 8: PREPROCESSING The preprocessing command %include can be used to insert the content
CHAPTER 8 Preprocessing CATC Scripting Language 27
CHAPTER 9 Context CATC Scripting Language 28 CHAPTER 9: CONTEXT The context is the mechanism by which transaction data is passed in and out of t
CHAPTER 9 Context CATC Scripting Language 29
CHAPTER 10 Functions CATC Scripting Language 30 CHAPTER 10: FUNCTIONS A function is a named statement or a group of statements that are executed
CHAPTER 10 Functions CATC Scripting Language 31 the parameter x will be assigned to 1, and the parameter y will be assigned to null, resulting i
CHAPTER 11 Primitives CATC Scripting Language 32 CHAPTER 11: PRIMITIVES Primitive functions are called similarly to regular functions, but they
CHAPTER 11 Primitives CATC Scripting Language 33 Comments Format is used to control the way that arguments will print out. The format string may
CHAPTER 11 Primitives CATC Scripting Language 34 • A space will insert a space before a positive signed integer. This only works with the conve
CHAPTER 11 Primitives CATC Scripting Language 35 result = C # The result is given in hexadecimal. The result in binary is 1100. In the call to
CATC Scripting Language Table of Contents iv 8 Preprocessing . . ... ... ... ... ... ... ... ... ... ... ... . 27 9 Context ... ... ...
CHAPTER 11 Primitives CATC Scripting Language 36 Resolve() Resolve( <symbol_name string> ) Parameter Meaning Default Value Comments
CHAPTER 11 Primitives CATC Scripting Language 37
CHAPTER 12 Decoder Primitives CATC Scripting Language 38 CHAPTER 12: DECODER PRIMITIVES Abort() Abort() Parameter Meaning Default Value Co
CHAPTER 12 Decoder Primitives CATC Scripting Language 39 Parameter Meaning Default Value Comments additional_info any Used to create specia
CHAPTER 12 Decoder Primitives CATC Scripting Language 40 AddCell( "Warning", "Value5", "Warning cell", 0x00BB22, _
CHAPTER 12 Decoder Primitives CATC Scripting Language 41 Example # Creates a data cell with 2 dwords (32-bit integers) of data. AddDataCell( &a
CHAPTER 12 Decoder Primitives CATC Scripting Language 42 AddSeparator() AddSeparator(<additional_info any>, ...) Parameter Meaning Def
CHAPTER 12 Decoder Primitives CATC Scripting Language 43 Parameter Meaning Default Value Comments value string Displays in the value field o
CHAPTER 12 Decoder Primitives CATC Scripting Language 44 # This cell will be displayed when the red group is collapsed: AddCell( "Red is&q
CHAPTER 12 Decoder Primitives CATC Scripting Language 45 The output of the example is: Figure 12-4: Example output for BeginCellBlock with re
CATC SCRIPTING LANGUAGE Reference Manual CHAPTER 1 Introduction 1 CHAPTER 1: INTRODUCTION CATC Scripting Language (CSL) was developed to creat
CHAPTER 12 Decoder Primitives CATC Scripting Language 46 EndCellBlock() EndCellBlock() Parameter Meaning Default Value Comments Return v
CHAPTER 12 Decoder Primitives CATC Scripting Language 47 PeekNBits() PeekNBits(<bit_count integer>) Parameter Meaning Default Value C
CHAPTER 12 Decoder Primitives CATC Scripting Language 48 Return value An integer that should be passed back to the application unchanged. Comme
Ol:APTER 12 Decoder Primitives CATC Scripting Language for USB 49
CHAPTER 13 Modules CATC Scripting Language 50 CHAPTER 13: MODULES Modules are a collection of functions and global data dedicated to decoding a
CHAPTER 13 Modules CATC Scripting Language 51 Module Data There are several standard global variables that should be defined in a module which
CHAPTER 13 Modules CATC Scripting Language 52 Icon Optional. File name of an icon to display on the toolbar. Must be a 19x19 pixel bitmap file
How to Contact Teledyne LeCroy Type of Service Contract Call for technical support… US and Canada: 1 (800) 909-7112 Worldwide: 1 (408) 653-1260
CHAPTER 2 Values CATC Scripting Language 2 CHAPTER 2: VALUES There are five value types that may be manipulated by a script: integers, strings,
CHAPTER 2 Values CATC Scripting Language 3 Escape Sequences These are the available escape sequences in CSL: Character Escape Sequence Examp
CHAPTER 2 Values CATC Scripting Language 4 result = null; Variables Variables are used to store information, or data, that can be modified.
CHAPTER 2 Values CATC Scripting Language 5 will create a local variable called Local, which will only be visible within the function Function.
Kommentare zu diesen Handbüchern