Teledyne-lecroy CATC Scripting Language Reference Manual Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Ausrüstung Teledyne-lecroy CATC Scripting Language Reference Manual herunter. Teledyne LeCroy CATC Scripting Language Reference Manual User Manual [es] Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken

Inhaltsverzeichnis

Seite 1 - Reference Manual

PROTOCOL SOLUTIONS GROUP 3385 SCOTT BLVD SANTA CLARA, CA 95054 CATC Scripting Language Reference Manual Manual Version 1.20 F

Seite 2 - Copyright

CHAPTER 3 Expressions CATC Scripting Language 6 CHAPTER 3: EXPRESSIONS An expression is a statement that calculates a value. The simplest type o

Seite 3 - TABLE OF

CHAPTER 3 Expressions CATC Scripting Language 7 x = 10 Value_of_x = select { x < 5 : "Less than 5"; x >= 5 : "Greater than

Seite 4

CHAPTER 4 Operators CATC Scripting Language 8 CHAPTER 4: OPERATORS An operator is a symbol that represents an action, such as addition or subtra

Seite 5 - , and PeekNBits()

CHAPTER 4 Operators CATC Scripting Language 9 The associative operator () is used to group parts of the expression, forcing those parts to be ev

Seite 6 - CHAPTER 2:

CHAPTER 4 Operators CATC Scripting Language 10 Operator Symbol Associativity += *= I= %= >>= <<= &= Right to left I= Ta

Seite 7 - Raw Bytes

CHAPTER 4 Operators CATC Scripting Language 11 Operator Symbol Description Operand Types Result Types Examples Index Operator [ ] Index or

Seite 8 - Variables

CHAPTER 4 Operators CATC Scripting Language 12 Operator Symbol Description Operand Types Result Types Examples Equality Operators == Equal I

Seite 9 - Constants

CHAPTER 4 Operators CATC Scripting Language 13 Operator Symbol Description Operand Types Result Types Examples Bitwise Logical Operators ~ B

Seite 10 - CHAPTER 3:

CHAPTER 4 Operators CATC Scripting Language 14 Operator Symbol Description Operand Types Result Types Examples Assignment Operators (continu

Seite 11 - HAPTER

CHAPTER 4 Operators CATC Scripting Language 15

Seite 12 - CHAPTER 4:

CATC Scripting Language Teledyne LeCroy Document Disclaimer The information contained in this document has been carefully checked and is believe

Seite 13

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

Seite 14 - (Continued)

CHAPTER 5 Comments CATC Scripting Language for USB 17

Seite 15 - Arithmetic Operators

CHAPTER 6 Keywords CATC Scripting Language for USB 18 CHAPTER 6: KEYWORDS Keywords are reserved words that have special meanings within the lang

Seite 16 - Logical Operators

CHAPTER 6 Keywords CATC Scripting Language for USB 19

Seite 17 - Assignment Operators

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

Seite 18 - List Operators

CHAPTER 7 Statements CATC Scripting Language 21 if ( 3 - 3 || 2 - 2 ) Trace ( "Yes" ); else Trace ( "No" ); will cause “No”

Seite 19

CHAPTER 7 Statements CATC Scripting Language 22 The example for ( x = 2; x < 5; x = x + 1 ) Trace ( x, "\n" ); would output 2 3

Seite 20 - CHAPTER 5:

CHAPTER 7 Statements CATC Scripting Language 23 Trace ( HiThere() ); ... HiThere() { a = "Hi there"; return a; b = "Goodbye"

Seite 21

CHAPTER 7 Statements CATC Scripting Language 24 ... <last_statement>; } An example of a compound statement is { x = 2; x + 3; } It&apos

Seite 22 - CHAPTER 6:

CHAPTER 7 Statements CATC Scripting Language 25

Seite 23

CATC Scripting Language Table of Contents iii TABLE OF CONTENTS Table of Contents . . ... ... ... ... ... ... ... ... ... ... . iii 1 Int

Seite 24 - CHAPTER 7:

CHAPTER 8 Preprocessing CATC Scripting Language 26 CHAPTER 8: PREPROCESSING The preprocessing command %include can be used to insert the content

Seite 25

CHAPTER 8 Preprocessing CATC Scripting Language 27

Seite 26

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

Seite 27 - Compound Statements

CHAPTER 9 Context CATC Scripting Language 29

Seite 28

CHAPTER 10 Functions CATC Scripting Language 30 CHAPTER 10: FUNCTIONS A function is a named statement or a group of statements that are executed

Seite 29 - Statements

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

Seite 30 - CHAPTER 8:

CHAPTER 11 Primitives CATC Scripting Language 32 CHAPTER 11: PRIMITIVES Primitive functions are called similarly to regular functions, but they

Seite 31 - Preprocessing

CHAPTER 11 Primitives CATC Scripting Language 33 Comments Format is used to control the way that arguments will print out. The format string may

Seite 32 - CHAPTER 9:

CHAPTER 11 Primitives CATC Scripting Language 34 • A space will insert a space before a positive signed integer. This only works with the conve

Seite 33 - Context

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

Seite 34 - CHAPTER 10:

CATC Scripting Language Table of Contents iv 8 Preprocessing . . ... ... ... ... ... ... ... ... ... ... ... . 27 9 Context ... ... ...

Seite 35

CHAPTER 11 Primitives CATC Scripting Language 36 Resolve() Resolve( <symbol_name string> ) Parameter Meaning Default Value Comments

Seite 36 - CHAPTER 11:

CHAPTER 11 Primitives CATC Scripting Language 37

Seite 37 - Format Conversion Characters

CHAPTER 12 Decoder Primitives CATC Scripting Language 38 CHAPTER 12: DECODER PRIMITIVES Abort() Abort() Parameter Meaning Default Value Co

Seite 38 - GetNBits()

CHAPTER 12 Decoder Primitives CATC Scripting Language 39 Parameter Meaning Default Value Comments additional_info any Used to create specia

Seite 39 - NextNBits()

CHAPTER 12 Decoder Primitives CATC Scripting Language 40 AddCell( "Warning", "Value5", "Warning cell", 0x00BB22, _

Seite 40 - Trace()

CHAPTER 12 Decoder Primitives CATC Scripting Language 41 Example # Creates a data cell with 2 dwords (32-bit integers) of data. AddDataCell( &a

Seite 41 - Primitives

CHAPTER 12 Decoder Primitives CATC Scripting Language 42 AddSeparator() AddSeparator(<additional_info any>, ...) Parameter Meaning Def

Seite 42 - CHAPTER 12:

CHAPTER 12 Decoder Primitives CATC Scripting Language 43 Parameter Meaning Default Value Comments value string Displays in the value field o

Seite 43

CHAPTER 12 Decoder Primitives CATC Scripting Language 44 # This cell will be displayed when the red group is collapsed: AddCell( "Red is&q

Seite 44 - AddDataCell()

CHAPTER 12 Decoder Primitives CATC Scripting Language 45 The output of the example is: Figure 12-4: Example output for BeginCellBlock with re

Seite 45 - AddEvent()

CATC SCRIPTING LANGUAGE Reference Manual CHAPTER 1 Introduction 1 CHAPTER 1: INTRODUCTION CATC Scripting Language (CSL) was developed to creat

Seite 46 - BeginCellBlock()

CHAPTER 12 Decoder Primitives CATC Scripting Language 46 EndCellBlock() EndCellBlock() Parameter Meaning Default Value Comments Return v

Seite 47

CHAPTER 12 Decoder Primitives CATC Scripting Language 47 PeekNBits() PeekNBits(<bit_count integer>) Parameter Meaning Default Value C

Seite 48

CHAPTER 12 Decoder Primitives CATC Scripting Language 48 Return value An integer that should be passed back to the application unchanged. Comme

Seite 49 - Complete()

Ol:APTER 12 Decoder Primitives CATC Scripting Language for USB 49

Seite 50 - GetBitOffset()

CHAPTER 13 Modules CATC Scripting Language 50 CHAPTER 13: MODULES Modules are a collection of functions and global data dedicated to decoding a

Seite 51 - Pending()

CHAPTER 13 Modules CATC Scripting Language 51 Module Data There are several standard global variables that should be defined in a module which

Seite 52 - Reject()

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

Seite 53 - Decoder

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

Seite 54 - CHAPTER 13:

CHAPTER 2 Values CATC Scripting Language 2 CHAPTER 2: VALUES There are five value types that may be manipulated by a script: integers, strings,

Seite 55 - Module Data

CHAPTER 2 Values CATC Scripting Language 3 Escape Sequences These are the available escape sequences in CSL: Character Escape Sequence Examp

Seite 56

CHAPTER 2 Values CATC Scripting Language 4 result = null; Variables Variables are used to store information, or data, that can be modified.

Seite 57

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

Keine Kommentare