beautypg.com

6 ivscriptengine::stop, Ivscriptengine::stop – Teledyne LeCroy USB Analyzer Automation Manual User Manual

Page 88

background image

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite

88

5.1.6 IVScriptEngine::Stop

HRESULT Stop();

Stops verification script previously launched by the

IVScriptEngine::LaunchVScript

method.

Parameters


Return values


Remarks


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("Test_1");
assert( usb_vsengine != NULL );

VS_RESULT result = usb_vsengine ->

LaunchVScript

();

. . .


if( NotEnoughResourcesToProcessVS )

usb_vsengine ->Stop();


. . .