Teledyne-lecroy SAS_SATA Automation API manual Instrukcja Użytkownika Strona 72

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 150
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 71
TeledyneLeCroy SASTraceObject
66 AutomationAPIforTeledyneLeCroySAS/SATAProtocolSuite
ITrace::ReportFileInfo
HRESULT ReportFileInfo (
[in] BSTR file_name )
Savestraceinformationintoaspecifiedtextfile.
Parameters
file_name Stringprovidingthefullpathnametofile wherethetraceinformation
reportisstored
ReturnValue
ANALYZERCOMERROR_UNABLESAVE Unabletocreatetraceinformationreport
Remarks
Createsanewtraceinformationfileifthefilespecifiedinthefile_name parameterdoes
notexist.
Example
WSH:
Set Analyzer =
WScript.CreateObject("LeCroy.SASAnalyzer")
CurrentDir = Left(WScript.ScriptFullName,
InstrRev(WScript.ScriptFullName, "\"))
Set Trace = Analyzer.MakeRecording (CurrentDir &
"Input\test_ro.sac")
Trace.ReportFileInfo CurrentDir &
"Output\file_info.txt"
C++:
ISASTrace* sas_trace;
TCHAR file_name[_MAX_PATH];
. . .
try
{
sas_trace->ReportFileInfo( file_name );
}
catch (_com_error& er)
{
if (er.Description().length() > 0)
::MessageBox( NULL, er.Description(), _T("SASTracer
client"), MB_OK );
else
::MessageBox( NULL, er.ErrorMessage(), _T("SASTracer
client"), MB_OK );
return 1;
}
Przeglądanie stron 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 149 150

Komentarze do niniejszej Instrukcji

Brak uwag