User Manual

Table Of Contents
156
CATC MERLINS WAND 1.22 APPENDIX C
Users Manual Merlin’s Wand Scripting Commands
#include body of script here
}
Clock()
Clock()
Return value
The number of milliseconds that have elapsed since the system was started.
Comments
This function returns the amount of time that the system has been running.
It can be used to find out how long it takes to run a script or a series of
commands within a script.
Example
time1 = Clock();
# Put script commands here
time2 = Clock();
Trace("Elapsed time is ", time2-time1, "\n");
Connect()
Connect(Address)
Return value
“Success”
“Already connected”
“Timed out”
“Failed: Disconnection in progress”
“Failure”
Comments
Establishes an ACL connection with the specified device
Parameter Meaning Default Value Comments
N/A
Parameter Meaning Default Value Comments
Address Bluetooth
address of
device to con-
nect with