Teledyne-lecroy SAS_SATA Automation API manual Manual de usuario Pagina 130

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 150
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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 pagina 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 149 150

Comentarios a estos manuales

Sin comentarios