Appendix c: merlin’s wand scripting commands, C.1 bluetooth addresses, C.2 basic commands – Teledyne LeCroy Merlins Wand - Users Manual User Manual
Page 171: Main(), Bluetooth addresses basic commands
155
CATC M
ERLIN
’
S
W
AND
2.00
C
HAPTER
C
User’s Manual
Merlin’s Wand Scripting Commands
Appendix C: Merlin’s Wand Scripting
Commands
Merlin’s Wand supports scripting commands to help automate testing pro-
cesses and commonly used sequences of Bluetooth commands. Custom
scripts can be written, saved, and run in Script Manager.
C.1 Bluetooth Addresses
Bluetooth addresses are represented in scripts as binary strings in
big-endian byte order. For example, the Bluetooth address
“0x010203040506” would be represented in the script as:
DeviceAddress = '010203040506';
Comparisons can be performed using binary strings. For example:
if ( DeviceAddress == '010203040506' )
{
#do something based on comparison here
}
C.2 Basic Commands
Main()
Main()
Return value
None.
Comments
This is the entry point into a script. When a script is run, the script’s Main()
function will be called. Include this command at the beginning of every
script.
Example
Main()
{
Parameter
Meaning
Default Value
Comments
N/A