Isasanalyzererrors::get_count – Teledyne LeCroy SAS_SATA Automation API manual User Manual
Page 116
Teledyne LeCroy
SASTraceErrors Object
110
Automation API for Teledyne LeCroy SAS/SATA Protocol Suite
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.sac" )
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
C++:
ISASTrace* sas_trace;
. . .
ISASAnalyzerErrors* analyser_errors;
try
{
analyser_errors = sas_trace-
>AnalyzerErrors(error_type).Detach();
}