Teledyne-lecroy CATC Scripting Language Reference Manual Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Equipamento Teledyne-lecroy CATC Scripting Language Reference Manual. Teledyne LeCroy CATC Scripting Language Reference Manual User Manual [es] Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir

Resumo do Conteúdo

Página 1 - Reference Manual

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

Página 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

Página 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

Página 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

Página 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

Página 6 - CHAPTER 2:

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

Página 7 - Raw Bytes

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

Página 8 - Variables

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

Página 9 - Constants

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

Página 10 - CHAPTER 3:

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

Página 11 - HAPTER

CHAPTER 4 Operators CATC Scripting Language 15

Página 12 - CHAPTER 4:

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

Página 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

Página 14 - (Continued)

CHAPTER 5 Comments CATC Scripting Language for USB 17

Página 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

Página 16 - Logical Operators

CHAPTER 6 Keywords CATC Scripting Language for USB 19

Página 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

Página 18 - List Operators

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

Página 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

Página 20 - CHAPTER 5:

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

Página 21

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

Página 22 - CHAPTER 6:

CHAPTER 7 Statements CATC Scripting Language 25

Página 23

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

Página 24 - CHAPTER 7:

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

Página 25

CHAPTER 8 Preprocessing CATC Scripting Language 27

Página 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

Página 27 - Compound Statements

CHAPTER 9 Context CATC Scripting Language 29

Página 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

Página 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

Página 30 - CHAPTER 8:

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

Página 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

Página 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

Página 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

Página 34 - CHAPTER 10:

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

Página 35

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

Página 36 - CHAPTER 11:

CHAPTER 11 Primitives CATC Scripting Language 37

Página 37 - Format Conversion Characters

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

Página 38 - GetNBits()

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

Página 39 - NextNBits()

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

Página 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

Página 41 - Primitives

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

Página 42 - CHAPTER 12:

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

Página 43

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

Página 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

Página 45 - AddEvent()

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

Página 46 - BeginCellBlock()

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

Página 47

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

Página 48

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

Página 49 - Complete()

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

Página 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

Página 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

Página 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

Página 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

Página 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,

Página 55 - Module Data

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

Página 56

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

Página 57

CHAPTER 2 Values CATC Scripting Language 5 will create a local variable called Local, which will only be visible within the function Function.

Comentários a estes Manuais

Sem comentários