20 information functions, 1 gettracename(), 2 getscriptname() – Teledyne LeCroy SierraFC Verification Script Engine Reference Manual User Manual

Page 46: 3 getapplicationfolder(), Race, Cript, Pplication, Older

Advertising
background image

Verification Script Engine Reference Manual

41

20 Information functions


20.1 GetTraceName()

This function returns the filename of the trace file being processed by VSE.
If the script is being run over 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 filename.



Example:

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

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


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

# GetTraceName(1) will return – "D_Some FC Traces_Data.fct"



20.2 GetScriptName()

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


Format :

GetScriptName()



Example:

ReportText( “Current script : ” + GetScriptName() );

20.3 GetApplicationFolder()

This function returns the full path to the folder where the SierraFC Protocol Suite application

was started.

Format :

GetApplicationFolder()



Example:

ReportText( “SierraFC Protocol Suite folder : ” + GetApplicationFolder () );



Advertising