Teledyne LeCroy SATracer 3G Verification Script Engine manual User Manual
Page 8
LeCroy Corporation
Verification Script Engine Reference Manual
Version 1.01
######################################################################################
OnStartScript()
{
######################################################################################
# Specify in the body of this function the initial values for global variables
# and what kinds of trace events should be passed to the script.
# ( By default, all packet level events from all channels
# will be passed to the script.
#
# For details – how to specify what kind of events should be passed to the script
# please see the topic ‘sending functions’.
#
# OPTIONAL.
######################################################################################
g_MyGlobalVariable = 0;
# Uncomment the line below - if you want to disable output from
# ReportText()-functions.
#
# DisableOutput();
}
######################################################################################
# ProcessEvent()
######################################################################################
#
#
######################################################################################
# It is a main script function called by the application when the next waited event
# occured in the evaluated trace.
#
# !!! REQUIRED !!! – MUST BE IMPLEMENTED IN VERIFICATION SCRIPT
######################################################################################
ProcessEvent()
{
# Write the body of this function depending upon your needs.
# It might require branching on event type:
# select {
# in. TraceEvent == … : …
# in. TraceEvent == … : …
# …
# }
}
return Complete();
######################################################################################
# OnFinishScript()
######################################################################################
#
######################################################################################
# It is a main script function called by the application when the script completed
# running. Specify in this function some resetting procedures for a successive run
# of this script.
#
# OPTIONAL.
######################################################################################
OnFinishScript()
{
}
return 0;
######################################################################################
3