1 ivscriptengine::vscriptname, Ivscriptengine::vscriptname – Teledyne LeCroy UWBTracer Automation Manual User Manual
Page 59

LeCroy
UWBTracer Automation API Reference Manual
Manual Version 3.02
55
5.1.1 IVScriptEngine::VscriptName
[propget] HRESULT VScriptName([out, retval] BSTR *pVal);
[propput] HRESULT VScriptName([in] BSTR newVal);
Property putting and getting current verification script name.
Parameters
*pVal
Address of variable where to keep current verification script name
newVal
Name of the verification script to initialize script verification engine.
Return values
Remarks
The name of the verification script is the name of the verification script file (*.vse) without the file
extension.
Example
C++: // In this example we use wrapper functions provided by #import directive
//
IUwbTrace*
uwb_trace;
. . .
IUwbVerificationScript* uwb_vscript = NULL;
uwb_trace->QueryInterface( IID_ IUwbVerificationScript, (void**)&uwb_vscript ) )
assert( uwb_vscript != NULL );
IVScriptEngine* uwb_vsengine = NULL;
uwb_vsengine = uwb_vscript -> GetVScriptEngine("Blah");
assert( uwb_vsengine != NULL );
uwb_vsengine -> put_VScriptName("Test_1");
assert( uwb_vsengine -> GetVScriptName() == "Test_1" );
VS_RESULT result = uwb_vsengine ->RunVScript();
if( result == PASSED )
{
::MessageBox( NULL, "Test 1 passed !!!", "UwbAnalyzer client", MB_OK );
}
. . .