Teledyne LeCroy Verification Script Engine for Teledyne LeCroy PETracer Reference Manual User Manual

Page 8

Advertising
background image

Teledyne LeCroy

Verification Script Engine Reference Manual

Version 6.6x

3

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
# are 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;
}

######################################################################################

######################################################################################
# Additional script functions.
######################################################################################
#
# Write your own script-specific functions here...
#
######################################################################################
MyFunction( arg )
{

if( arg == “My Arg” ) return 1;

return 0;

}

Advertising