Call(), Format(), Call() format() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 293

Advertising
background image

277

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

D

User’s Manual

CATC Scripting Language

Call()

Call( <function_name string>, <arg_list list> )

Return value

Same as that of the function that is called.

Comments

Calls a function whose name matches the function_name parameter.
All scope rules apply normally. Spaces in the function_name
parameter are interpreted as the ‘_’ (underscore) character since function
names cannot contain spaces.

Example

Call("Format", ["the number is %d", 10]);

is equivalent to:

Format("the number is %d", 10);

Format()

Format (<format string>, <value string or integer>)

Return value

None.

Comments

Format

is used to control the way that arguments will print out. The format

string may contain conversion specifications that affect the way in which the
arguments in the value string are returned. Format conversion characters,
flag characters, and field width modifiers are used to define the conversion
specifications.

Example

Format("0x%02X", 20);

would yield the string 0x14.

Parameter

Meaning

Default Value

Comments

function_name string

arg_list list

Used as the list of parameters in the function call.

Parameter

Meaning

Default Value

Comments

format string

value string or integer

Advertising