Information functions, Gettracename(), Getscriptname() – Teledyne LeCroy SATracer 3G Verification Script Engine manual User Manual
Page 50: Getapplicationfolder(), 15 information functions, Race, Cript, Pplication, Older
![background image](/manuals/353603/50/background.png)
LeCroy Corporation
Verification Script Engine Reference Manual
Version 1.01
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 will return 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 SAS Traces\Data.sas
# GetTraceName(1) will return – "D_Some SAS Traces_Data.sas"
15.2 GetScriptName()
This function returns the name of the verification script where this function is called.
Format :
GetScriptName()
Example:
ReportText( “Current script : ” + GetScriptName() );
15.3 GetApplicationFolder()
This function returns the full path of the folder where the SASTracer/SATracer application was
started.
Format :
GetApplicationFolder()
Example:
ReportText( “SASTracer folder : ” + GetApplicationFolder () );
45