Teledyne-lecroy SAS_SATA Automation API manual Manual do Utilizador Página 130

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 150
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 );
Vista de página 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 149 150

Comentários a estes Manuais

Sem comentários