Data Sheet
Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
98
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 in which to store 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, use wrapper functions provided by #import directive.
IUsbTrace* usb_trace;
. . .
IUsbVerificationScript* usb_vscript = NULL;
usb_trace->QueryInterface( IID_ IUsbVerificationScript, (void**)&usb_vscript ) )
assert( usb_vscript != NULL );
IVScriptEngine* usb_vsengine = NULL;
usb_vsengine = usb_vscript -> GetVScriptEngine("Blah");
assert( usb_vsengine != NULL );
usb_vsengine -> put_VScriptName("Test_1");
assert( usb_vsengine -> GetVScriptName() == "Test_1" );
VS_RESULT result = usb_vsengine ->RunVScript();
if( result == PASSED )
{
::MessageBox( NULL, "Test 1 passed !!!", "UsbAnalyzer client", MB_OK );
}
. . .