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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 150
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 67
TeledyneLeCroy SASTraceObject
62 AutomationAPIforTel edyneLeCroySAS/SATAProtocolSuite
End If
MySTATS.ReportText ("Number of packets in trace file :
" & CSTR(SASTracer.GetPacketsCount()))
'Get specific row of spread sheet view.
start_row = SASTracer.GetPacketRow (0, 5)
If Err.Number <> 0 Then
MySTATS.ReportError Err.number, Err.Description
result = 2 ' fail
End If
end_row = SASTracer.GetPacketRow (100, 5)
If Err.Number <> 0 Then
MySTATS.ReportError Err.number, Err.Description
result = 2 ' fail
End If
MySTATS.ReportText ("Star export row: " & CSTR(start_row))
MySTATS.ReportText ("End export row: " & CSTR(end_row))
SASTracer.ExportToText
ProjectPath & "SpreadSheet.txt", 5, start_row, end_row
SASTracer.ExportToText
ProjectPath & "FrameView.txt", 1 ' entire sample
If Err.Number <> 0 Then
MySTATS.ReportError Err.number, Err.Description
result = 2 ' fail
Else
MySTATS.ReportText ("Export to text has been done.")
End If
SASTracer.ExportToExcel
ProjectPath & "SpreadSheet.csv", 5 ' entire sample
SASTracer.ExportToExcel
ProjectPath & "FrameView.csv", 1, 1, 100 ' from row 1 to 100
If Err.Number <> 0 Then
MySTATS.ReportError Err.number, Err.Description
result = 2 ' fail
Else
MySTATS.ReportText ("Export to Excel has been done.")
End If
SASTracer.Close()
If Err.Number <> 0 Then
MySTATS.ReportError Err.number, Err.Description
result = 2 ' fail
Else
MySTATS.ReportText ("Trace file is closed")
End If
'#########################################
'Report the result.
MySTATS.ReportResult(result)
Vista de pagina 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 149 150

Comentarios a estos manuales

Sin comentarios