Teledyne-lecroy CATC Scripting Language Reference Manual Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Zařízení Teledyne-lecroy CATC Scripting Language Reference Manual. Teledyne LeCroy CATC Scripting Language Reference Manual User Manual [es] Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk

Shrnutí obsahu

Strany 1 - Reference Manual

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 6 - CHAPTER 2:

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

Strany 7 - Raw Bytes

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

Strany 8 - Variables

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

Strany 9 - Constants

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

Strany 10 - CHAPTER 3:

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

Strany 11 - HAPTER

CHAPTER 4 Operators CATC Scripting Language 15

Strany 12 - CHAPTER 4:

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

Strany 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

Strany 14 - (Continued)

CHAPTER 5 Comments CATC Scripting Language for USB 17

Strany 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

Strany 16 - Logical Operators

CHAPTER 6 Keywords CATC Scripting Language for USB 19

Strany 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

Strany 18 - List Operators

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

Strany 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

Strany 20 - CHAPTER 5:

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

Strany 21

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

Strany 22 - CHAPTER 6:

CHAPTER 7 Statements CATC Scripting Language 25

Strany 23

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

Strany 24 - CHAPTER 7:

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

Strany 25

CHAPTER 8 Preprocessing CATC Scripting Language 27

Strany 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

Strany 27 - Compound Statements

CHAPTER 9 Context CATC Scripting Language 29

Strany 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

Strany 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

Strany 30 - CHAPTER 8:

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

Strany 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

Strany 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

Strany 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

Strany 34 - CHAPTER 10:

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

Strany 35

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

Strany 36 - CHAPTER 11:

CHAPTER 11 Primitives CATC Scripting Language 37

Strany 37 - Format Conversion Characters

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

Strany 38 - GetNBits()

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

Strany 39 - NextNBits()

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

Strany 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

Strany 41 - Primitives

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

Strany 42 - CHAPTER 12:

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

Strany 43

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

Strany 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

Strany 45 - AddEvent()

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

Strany 46 - BeginCellBlock()

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

Strany 47

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

Strany 48

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

Strany 49 - Complete()

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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,

Strany 55 - Module Data

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

Strany 56

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

Strany 57

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

Komentáře k této Příručce

Žádné komentáře