6 ivscriptengine::stop – Teledyne LeCroy SAS_SATA Tracer_Trainer Automation API Manual User Manual
Page 77

LeCroy Corporation
Automation API for SAS/SATATracer/Trainer
Manual Version 1.11
77
8.1.6 IVScriptEngine::Stop
HRESULT Stop ( )
Stops the verification script previously launched by
IVScriptEngine:: LaunchVScript
Parameters
Return values
Remarks
Example
C++:
// In this example, we use wrapper functions provided by the #import directive.
ISASTrace* sas_trace;
. . .
ISASVerificationScript* sas_vscript = NULL;
sas_trace->QueryInterface( IID_ISASVerificationScript, (void**)&sas_vscript ) )
assert( sas_vscript != NULL );
IVScriptEngine* sas_vsengine = NULL;
sas_vsengine = sas_vscript -> GetVScriptEngine("Test_1");
assert( sas_vsengine != NULL );
VS_RESULT result = sas_vsengine ->LaunchVScript();
. . .
if( NotEnoughResourcesToProcessVS )
sas_vsengine ->Stop();
. . .