beautypg.com

6 ivscriptengine::stop, Parameters, Return values – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual

Page 128: Remarks, Example, Ipetrace* pe_trace, Ipeverificationscript* pe_vscript = null, Ivscriptengine::stop

background image

Teledyne LeCroy

Automation API for PETracer/PETrainer

123

9.1.6 IVScriptEngine::Stop

HRESULT Stop()

Stops verification script previously launched by the IVScriptEngine::LaunchVScript method (see Page 106).

Parameters


Return values


Remarks


Example

C++:

// In this example we use wrapper functions provided by #import directive
//

IPETrace* pe_trace;


. . .


IPEVerificationScript* pe_vscript = NULL;

pe_trace->QueryInterface( IID_IPEVerificationScript, (void**)&pe_vscript ) )

assert( pe_vscript != NULL );

IVScriptEngine* pe_vsengine = NULL;
pe_vsengine = pe_vscript -> GetVScriptEngine("Test_1");
assert( pe_vsengine != NULL );

VS_RESULT result = pe_vsengine ->

LaunchVScript

();

. . .


if( NotEnoughResourcesToProcessVS )

pe_vsengine ->Stop();

. . .