Teledyne-lecroy SAS_SATA Tracer_Trainer Automation API Manual Manual de usuario Pagina 69

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 94
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 68
LeCroy Corporation Automation API for SAS/SATATracer/Trainer Manual Version 1.11
69
7.1.2 ISASAnalyzerErrors::get_Count
HRESULT get_Count(
[out, retval] long* number_of_errors );
Returns the number of errors in the trace.
Parameters
number_of_errors Number of elements in the collection
Remarks
Example
WSH:
' Makes recording and saves the portions of the recorded trace
' where "Running Disparity" errors occured.
CurrentDir = Left(WScript.ScriptFullName, InstrRev( WScript.ScriptFullName, “\” ))
Set Analyzer = WScript.CreateObject( “LeCroy.SASTracer” )
Set Trace = Analyzer.MakeRecording( CurrentDir & "Input\test_ro.rec" )
Set Errors = Trace.AnalyzerErrors( 32 ) ' Running Disparity Error
For Each ErrorPacketNumber In Errors
ErrorFile = CurrentDir & "\Output\PckLen_error_span_" &
CStr(ErrorPacketNumber) & ".sas"
Trace.Save ErrorFile, CInt(ErrorPacketNumber)-5, CInt(ErrorPacketNumber)+5
Next
Vista de pagina 68
1 2 ... 64 65 66 67 68 69 70 71 72 73 74 ... 93 94

Comentarios a estos manuales

Sin comentarios