beautypg.com

1 createtracefile(), Reate, Race – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual

Page 97

background image

Teledyne LeCroy

Verification Script Engine Reference Manual




Page 97 of 115



20.1 CreateTraceFile()


This function creates a trace file.


Format:

CreateTraceFile( file_path )


Parameters:

file_path

Full path to the trace file to be created. (For

‘\’

use

‘\\’

)

Return Values:

The "handle" to the trace file to be used in other trace-file-related functions.


Remarks:

If file_path contains just a file name (such as test.usb), the trace file is created in the application folder.

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.