Teledyne-lecroy SAS_SATA Automation API manual Uživatelský manuál Strana 72

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 150
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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;
}
Zobrazit stránku 71
1 2 ... 67 68 69 70 71 72 73 74 75 76 77 ... 149 150

Komentáře k této Příručce

Žádné komentáře