beautypg.com

2 closetracefile(), Lose, Race – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual

Page 98

background image

Teledyne LeCroy

Verification Script Engine Reference Manual




Page 98 of 115



20.2 CloseTraceFile()


This function closes an open trace file. All attempts to add trace data to a closed trace file are ignored.


Format:

CloseTraceFile( tracefile_handle )


Parameters:

tracefile_handle

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


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.