Miscellaneous functions, Scriptfordisplayonly(), Sleep() – Teledyne LeCroy SATracer 3G Verification Script Engine manual User Manual
Page 65: Converttohtml(), 21 miscellaneous functions, Cript, Isplay, Leep, Onvert, Html()

LeCroy Corporation
Verification Script Engine Reference Manual
Version 1.01
21 Miscellaneous Functions
21.1 ScriptForDisplayOnly()
Specifies that the script is designed for displaying information only and that its author doesn’t
care about verification script result. Such a script will have a result of DONE after execution.
Format :
ScriptForDisplayOnly ()
Example:
ScriptForDisplayOnly();
21.2 Sleep()
Asks VSE not to send any events to a script until the timestamp of the next event is greater than
the timestamp of the current event plus sleeping time.
Format :
Sleep( time )
Parameters:
time - VSE time object specifying sleep time
Example:
Sleep ( Time(1000) ); # Don’t send any event occurred during 1 ms from the
current event
21.3 ConvertToHTML()
This function replaces spaces with “
 
” and carriage return symbols with “
” in a text
string.
Format :
ConvertToHTML( text_string )
Parameters:
text_string - text string
Example:
str = “Hello world !!!\n”;
str += “How are you today?”;
html_str = ConvertToHTML ( str );
# html_string =
“Hello
 
world
 
!!!
How
 
are
 
you
 
today?”
NOTE : Some other useful miscellaneous functions can be found in the file VSTools.inc
60