User Manual

Table Of Contents
163
CATC MERLINS WAND 1.22 APPENDIX C
Users 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.