Chapter 16: information functions, 1 gettracename(), 2 getscriptname() – Teledyne LeCroy SAS_SATA Protocol Suite Verification Script Engine Reference Manual User Manual

Page 61: 3 getapplicationfolder(), Chapter 16, Information functions, Race, Cript, Pplication, Older

Advertising
background image


61

Chapter 16:

Information Functions

16.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
current 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"

16.2 GetScriptName()

This function returns the name of the verification script where this function is called.


Format :

GetScriptName()


Example

ReportText( "Current script : " + GetScriptName() );


16.3 GetApplicationFolder()

This function returns the full path of the folder where the SASSuite/SATASuite application was
started.


Format :

GetApplicationFolder()

Example

ReportText( "SASTracer folder : " + GetApplicationFolder () );

Advertising