15 information functions, 1 gettracename(), Race – Teledyne LeCroy Verification Script Engine for Teledyne LeCroy PETracer Reference Manual User Manual

Page 62

Advertising
background image

Teledyne LeCroy

Verification Script Engine Reference Manual

Version 6.6x

57

15 Information Functions


15.1 GetTraceName()


This function returns the filename of the trace file being processed by VSE.
If the script is being run over a multi-segmented trace, this function returns the path to the segment being

processed.

Format:

GetTraceName( filepath_compatible )


Parameters:

filepath_compatible

If this parameter is present and not equal to 0,
the returned value may be used as part of the filename.


Example:

ReportText( “Trace name : ” + GetTraceName() );

File = OpenFile( "C:\\My Files\\" + GetTraceName(1) + "_log.log" );


# For trace file with path - D:\Some Traces\Data.pex

# GetTraceName(1) returns – "D_Some Traces_Data.pex"



Advertising