Teledyne-lecroy SAS_SATA Automation API manual Uživatelský manuál Strana 128

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 150
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 127
TeledyneLeCroy SASVScriptEngineObject
122 AutomationAPIforTeledyneLeCroySAS/SATAProtocolSuite
IVScriptEngine::GetScriptVar
HRESULT GetScriptVar (
[in] BSTR var_name,
[out, retval] VARIANT* var_value )
Changesthecurrentverificationscriptnameandrunstheverificationscript.
Parameters
var_name Stringprovidingthenameoftheglobalvariableorconstantused
intherunningverificationscript
var_value AddressofaVARIANTvariablewheretheresultwillbekept
ReturnValue
E_PENDING Ifthismethodiscalledwhenthescriptis alreadyrunning
Remarks
Ifthereisnosuchglobalvariableorconstantwiththenamevar_name,theresulting
valuewillcontainanemptyVARIANT .
Example
C++:
// This example uses 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 ->RunVScript();
. . .
VARIANT my_var;
VariantInit( &my_var );
Zobrazit stránku 127
1 2 ... 123 124 125 126 127 128 129 130 131 132 133 ... 149 150

Komentáře k této Příručce

Žádné komentáře