4 ivscriptengine::runvscriptex, Ivscriptengine::runvscriptex – Teledyne LeCroy UWBTracer Automation Manual User Manual
Page 62
LeCroy
UWBTracer Automation API Reference Manual
Manual Version 3.02
58
5.1.4 IVScriptEngine::RunVScriptEx
HRESULT RunVScriptEx([in] BSTR script_name,
[out, retval] int* pResult);
Changes the current verification script name and runs verification script.
Parameters
script_name
Name of the verification script to initialize script verification engine.
PResult
Address of a variable in which to keep the result of verification.
See
IUwbVerificationScript::RunVerificationScript
method for details.
Return values
Remarks
This method makes a “synchronous” call – which means that this method does not return until the script
stops running.
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("Test_1");
assert( uwb_vsengine != NULL );
VS_RESULT result = uwb_vsengine ->RunVScript();
if( result == PASSED )
{
::MessageBox( NULL, "Test 1 passed !!!", "UwbAnalyzer client", MB_OK );
}
result = uwb_vsengine ->RunVScriptEx("Test_2");
if( result == PASSED )
{
::MessageBox( NULL, "Test 2 passed !!!", "UwbAnalyzer client", MB_OK );
}
result = uwb_vsengine ->RunVScriptEx("Test_3");
if( result == PASSED )
{
::MessageBox( NULL, "Test 3 passed !!!", "UwbAnalyzer client", MB_OK );
}
. . .