Addeventtotracefile(), Vent, Race – Teledyne LeCroy UWBTracer Verification Script Engine Manual User Manual

Page 79: 3 addeventtotracefile()

Advertising
background image

LeCroy Corporation

Verification Script Engine Manual, version 2.2





19.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.uwb".

trace_handle = CreateTraceFile(“C:\\data_output.uwb”);

…

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

AddEventToTraceFile(trace_handle);

…

CloseTraceFile(trace_handle); # Close the file.

…

Page 79 of 95



Advertising