beautypg.com

3 addeventtotracefile(), Vent, Race – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual

Page 99

background image

Teledyne LeCroy

Verification Script Engine Reference Manual




Page 99 of 115



20.3 AddEventToTraceFile()


This function adds the current trace event (such as frames) to the trace file.


Format:

AddEventToTraceFile ( tracefile_handle )


Parameters:

tracefile_handle

Trace File "handle" returned by the CreateTraceFile() function.


Remarks:

If this function is called multiple times for the same event, only the first call adds an event to the trace file. All the
other calls are ignored.

Example:

set trace_handle = 0;

# Create a trace file in "C:\\data_output.usb".
trace_handle = CreateTraceFile("C:\\data_output.usb");


# Add the current trace event (frame) to the trace file.
AddEventToTraceFile(trace_handle);

CloseTraceFile(trace_handle); # Close the file.