Writepipe() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 179

Advertising
background image

163

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

Data (element 2) is the raw data received in the transaction. Valid only if
result is “Success”.

Comments

Reads the specified amount of data from an open pipe.

Example

result = ReadPipe("Data1", "Receive", 1024);

if(result[0] == "Success")

{

Trace("Read ", result[1], "bytes:\n");

Trace(result[2]);

}

WritePipe()

WritePipe(PipeName, Data)

Return value

“Success”

“Failure”

“Pipe not found”

“Pipe not open”

“Not supported”

Comments

Writes data to the specified pipe. Note that only “Receive” pipes can be
written to.

Example

result = WritePipe("Data1", "This is a string written to a

pipe");

result = WritePipe("Data1", '3C7EFFFF7E3C');

result = WritePipe("Data1", 0x01020304);

Parameter

Meaning

Default Value

Comments

PipeName

Name of the

data pipe to

open

Data

Data to write

to the pipe

This can be a string, integer, list or raw data.

Advertising