Teledyne-lecroy SAS_SATA Automation API manual Instrukcja Użytkownika Strona 130

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 150
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 129
TeledyneLeCroy SASVScriptEngineObject
124 AutomationAPIforTeledyneLeCroySAS/SATAProtocolSuite
IVScriptEngine::SetScriptVar
HRESULT SetScriptVar (
[in] BSTR var_name,
[in] VARIANT var_value )
Allowsyoutosetthevalueofsomeverificationscriptglobalvariablebefore/after
executingthescript(refertotheSASTracerVerificationScriptEngineManualandtheFile
BasedDecodingManualforinformationonhowascriptcandeclare,set,anduseglobal
variables).
Onlyintegers,strings,orarraysofVARIANT sareallowedascorrectvalues.Arraysof
VARIANTsareconvertedintolistvaluesinsideofscripts.SeetheFi leBasedDecoding
Manualformoredetailsaboutlistobjects.
Parameters
var_name Stringprovidingthenameoftheglobalvariableusedinthe
runningverificationscript
var_value VARIANTvariablecontainingthenewvariablevalue
ReturnValue
E_PENDING Ifthismethodiscalledwhenthescriptisalreadyrunning
Remarks
Thisfunctionallowsyoutosetinternalscriptvariablesbeforerunningascript,givingyou
theopportunitytomakeruntimecustomizationfromCOM/Automationclient
applications.
Forthisoperationtotakeeffectduringexecutionofthescript,aglobalvariablewiththe
namespecifiedbyvar_nameshouldbedeclaredbythescript.
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 );
Przeglądanie stron 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 149 150

Komentarze do niniejszej Instrukcji

Brak uwag