Teledyne-lecroy FireInspector Automation Application Programming I Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Logiciel Teledyne-lecroy FireInspector Automation Application Programming I. Teledyne LeCroy FireInspector Automation Application Programming Interface User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 92
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
2403 Walsh Avenue, Santa Clara, CA 95051-1302 Tel: +1/408.727.6600 Fax: +1/408.727.6622
Version 1.0
January 11, 2002
FireInspector
Automation
Application Programming Interface
Users Manual
Vue de la page 0
1 2 3 4 5 6 ... 91 92

Résumé du contenu

Page 1 - User’s Manual

2403 Walsh Avenue, Santa Clara, CA 95051-1302 Tel: +1/408.727.6600 Fax: +1/408.727.6622Version 1.0January 11, 2002FireInspector™ AutomationApplicat

Page 2 - Trademarks and Servicemarks

6 FireInspector Automation User’s ManualCATC Version 1.02.3.1 IAnalyzer::GetVersionRetrieves the current version of specified subsystem.SyntaxHRESULT

Page 3 - TABLE OF CONTENTS

7 FireInspector Automation User’s ManualCATC Version 1.0ANALYZERVERSION_SOFTWARE );}catch ( _com_error& er){if (er.Description().length() > 0)

Page 4

8 FireInspector Automation User’s ManualCATC Version 1.02.3.2 IAnalyzer::GetSerialNumberRetrieves serial number of analyzer device.SyntaxHRESULT GetSe

Page 5 - 1. Introduction

9 FireInspector Automation User’s ManualCATC Version 1.0TCHAR buffer[20];_stprintf( buffer, _T("Serial number: %X"), HIBYTE(serial_number),

Page 6

10 FireInspector Automation User’s ManualCATC Version 1.02.3.3 IAnalyzer::OpenFileOpens trace file.SyntaxHRESULT OpenFile ( [in] BSTR file_name, [out,

Page 7 - 2.1 Introduction

11 FireInspector Automation User’s ManualCATC Version 1.0}// query for VTBL interfaceIFwTrace* Fw_trace;hr = trace->QueryInterface( IID_IFwTrace,

Page 8 - 2.2 Command Descriptions

12 FireInspector Automation User’s ManualCATC Version 1.02.3.4 IAnalyzer::StartGenerationStarts traffic generation from the file.SyntaxHRESULT StartGe

Page 9

13 FireInspector Automation User’s ManualCATC Version 1.02.3.5 IAnalyzer::StopGenerationStops generation.SyntaxHRESULT StopGeneration ( );ParametersR

Page 10 - 2.3.1 IAnalyzer::GetVersion

14 FireInspector Automation User’s ManualCATC Version 1.02.3.6 IAnalyzer::StartRecordingStarts recording with specified recording options.SyntaxHRESUL

Page 11 - CATC Version 1.0

15 FireInspector Automation User’s ManualCATC Version 1.0. . . try{fw_analyzer->StartRecording( ro_file_name )}catch ( _com_error& er){if (er.

Page 12

ii FireInspector Automation User’s ManualCATC Version 1.0Document DisclaimerThe information contained in this document has been carefully checked and

Page 13

16 FireInspector Automation User’s ManualCATC Version 1.02.3.7 IAnalyzer::StopRecordingStops recording started by StartRecording method.SyntaxHRESULT

Page 14 - 2.3.3 IAnalyzer::OpenFile

17 FireInspector Automation User’s ManualCATC Version 1.0{if (er.Description().length() > 0)::MessageBox( NULL, er.Description(), _T("FwAnaly

Page 15

18 FireInspector Automation User’s ManualCATC Version 1.02.3.8 IAnalyzer::MakeRecordingMakes recording with specified recording options file.SyntaxHRE

Page 16 - • E_NOTIMPL

19 FireInspector Automation User’s ManualCATC Version 1.0::MessageBox( NULL, er.ErrorMessage(), _T("FwAnalyzer client"), MB_OK );return 1;}

Page 17

20 FireInspector Automation User’s ManualCATC Version 1.02.3.9 IAnalyzer::LoadDisplayOptionsLoads display options that will apply for trace opened or

Page 18

21 FireInspector Automation User’s ManualCATC Version 1.02.3.10 IAnalyzer::GetRecordingOptionsRetrieves primary interface for access to recording opt

Page 19

22 FireInspector Automation User’s ManualCATC Version 1.0hr = rec_opt->QueryInterface( IID_IFwRecOptions, (LPVOID *)&ib_rec_opt );rec_opt->R

Page 20

23 FireInspector Automation User’s ManualCATC Version 1.02.3.11 IFwAnalyzer::EnableConfigROMSets config ROM that the FireInspector will return to eit

Page 21

24 FireInspector Automation User’s ManualCATC Version 1.02.3.12 IFwAnalyzer::LoadConfigROMLoads the config ROM specified by filename and enables it.Sy

Page 22

25 FireInspector Automation User’s ManualCATC Version 1.02.3.13 IFwAnalyzer::RetrieveTreePerforms a bus reset with a type specified in reset_type and

Page 23

iii FireInspector Automation User’s ManualCATC Version 1.0TABLE OF CONTENTSTable of Contents . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 24

26 FireInspector Automation User’s ManualCATC Version 1.02.4 Primary Dual Interface for TraceIFwTrace interface is the primary interface for FwTrace o

Page 25

27 FireInspector Automation User’s ManualCATC Version 1.02.4.1 ITrace::GetNameRetrieves trace name.SyntaxHRESULT GetName ( [out, retval] BSTR* trace_

Page 26

28 FireInspector Automation User’s ManualCATC Version 1.02.4.2 ITrace::ApplyDisplayOptionsApplies specified display options to the trace.SyntaxHRESULT

Page 27 - • NOERROR – success

29 FireInspector Automation User’s ManualCATC Version 1.02.4.3 ITrace::SaveSaves trace into file, allows to save a range of packets.SyntaxHRESULT Sav

Page 28

30 FireInspector Automation User’s ManualCATC Version 1.0fw_trace->Save( file_name, packet_from, packet_to );}catch ( _com_error& er){if (er.De

Page 29 - • Returns NOERROR on success

31 FireInspector Automation User’s ManualCATC Version 1.02.4.4 ITrace::ExportToTextExports trace into text file, allows to export a range of packetsS

Page 30

32 FireInspector Automation User’s ManualCATC Version 1.0_______| Data(2 quadlets) data_CRC(0x12CC63D9) ACK(pending)Idle( 61.584 µs)_______| Time Stam

Page 31 - 2.4.1 ITrace::GetName

33 FireInspector Automation User’s ManualCATC Version 1.0rt(X)_______| rcode(complete) header_CRC(0x2007F63C)ACK(complete) Idle( 51.719 ms)_______| T

Page 32

34 FireInspector Automation User’s ManualCATC Version 1.0::MessageBox( NULL, er.Description(), _T("FwAnalyzer client"), MB_OK );else::Messa

Page 33 - 2.4.3 ITrace::Save

35 FireInspector Automation User’s ManualCATC Version 1.02.4.5 ITrace::CloseCloses the trace.SyntaxHRESULT Close ( );ParametersReturn valuesRemarksCl

Page 34

iv FireInspector Automation User’s ManualCATC Version 1.0IRecOptions::SetPostTriggerPercentage. . . . . . . . . . . . . . 54IRecOptions::SetTriggerBee

Page 35 - 2.4.4 ITrace::ExportToText

36 FireInspector Automation User’s ManualCATC Version 1.02.4.6 ITrace::ReportFileInfoSaves trace information into specified text file.SyntaxHRESULT Re

Page 36

37 FireInspector Automation User’s ManualCATC Version 1.0C++:IFwTrace* fw_trace;TCHAR file_name[_MAX_PATH];. . . try{fw_trace->ReportFileInfo( fil

Page 37

38 FireInspector Automation User’s ManualCATC Version 1.02.4.7 ITrace::ReportErrorSummarySaves trace error summary information into specified text fil

Page 38

39 FireInspector Automation User’s ManualCATC Version 1.0C++:IFwTrace* fw_trace;TCHAR file_name[_MAX_PATH];. . . try{fw_trace->ReportErrorSummary(

Page 39 - 2.4.5 ITrace::Close

40 FireInspector Automation User’s ManualCATC Version 1.02.4.8 ITrace::ReportTrafficSummarySaves trace traffic summary information into specified text

Page 40 - 2.4.6 ITrace::ReportFileInfo

41 FireInspector Automation User’s ManualCATC Version 1.02.4.9 ITrace::GetPacketRetrieves raw packet representation.SyntaxHRESULT GetPacket ( [in] lo

Page 41

42 FireInspector Automation User’s ManualCATC Version 1.0(TextPacketNumber.value, Packet)If Err.Number <> 0 ThenMsgBox "GetPacket:" &a

Page 42

43 FireInspector Automation User’s ManualCATC Version 1.0{VARIANT var;HRESULT hr = SafeArrayGetElement(packet_safearray, &i, &var);if (FAILED

Page 43

44 FireInspector Automation User’s ManualCATC Version 1.02.4.10 ITrace::GetPacketsCountRetrieves total number of packets in the trace.SyntaxHRESULT Ge

Page 44

45 FireInspector Automation User’s ManualCATC Version 1.0TCHAR trace_info[256];_stprintf( trace_info, _T("Trace:'%s', total packets:%l

Page 45 - 2.4.9 ITrace::GetPacket

1 FireInspector Automation User’s ManualCATC Version 1.01. Introduction FireInspector Automation is an Application Programming Interface (API) that a

Page 46

46 FireInspector Automation User’s ManualCATC Version 1.02.4.11 ITrace::GetTriggerPacketNumRetrieves trigger packet number.SyntaxHRESULT GetTriggerPac

Page 47

47 FireInspector Automation User’s ManualCATC Version 1.02.4.12 ITrace::AnalyzerErrorsRetrieves trace file errors.SyntaxHRESULT AnalyzerErrors ( [in]

Page 48

48 FireInspector Automation User’s ManualCATC Version 1.0client"), MB_OK );else::MessageBox( NULL, er.ErrorMessage(),_T("FwAnalyzer client&q

Page 49

49 FireInspector Automation User’s ManualCATC Version 1.02.5 Primary Dual Interface for Recording OptionsIFwRecOptions interface is the primary inter

Page 50

50 FireInspector Automation User’s ManualCATC Version 1.02.5.1 IRecOptions::LoadLoads recording options from specified file.SyntaxHRESULT Load ([in] B

Page 51 - 2.4.12 ITrace::AnalyzerErrors

51 FireInspector Automation User’s ManualCATC Version 1.02.5.2 IRecOptions::SaveSaves recording options into specified file.SyntaxHRESULT Save ([in]

Page 52

52 FireInspector Automation User’s ManualCATC Version 1.02.5.3 IRecOptions::SetRecModeSets the recording mode.SyntaxHRESULT SetRecMode ([in] ERecModes

Page 53

53 FireInspector Automation User’s ManualCATC Version 1.02.5.4 IRecOptions::SetBufferSizeSets the size of buffer to record.SyntaxHRESULT SetBufferSiz

Page 54 - 2.5.1 IRecOptions::Load

54 FireInspector Automation User’s ManualCATC Version 1.02.5.5 IRecOptions::SetPostTriggerPercentageSets the post-trigger buffer size.SyntaxHRESULT Se

Page 55 - 2.5.2 IRecOptions::Save

55 FireInspector Automation User’s ManualCATC Version 1.02.5.6 IRecOptions::SetTriggerBeepSets the flag indicating to make a sound when trigger occur

Page 56 - 2.5.3 IRecOptions::SetRecMode

2 FireInspector Automation User’s ManualCATC Version 1.01.3 Setting Up Automation for Remote UseIf you intend to run automation remotely over a networ

Page 57

56 FireInspector Automation User’s ManualCATC Version 1.02.5.7 IRecOptions::SetDataTruncateSets the flag indicating that recorded data is to be trunca

Page 58

57 FireInspector Automation User’s ManualCATC Version 1.02.5.8 IRecOptions::SetSaveExternalSignalsSets the flag indicating to save external signals.S

Page 59 - • beep – possible values:

58 FireInspector Automation User’s ManualCATC Version 1.02.5.9 IRecOptions::SetTraceFileNameSets the path to the file where trace will be stored after

Page 60

59 FireInspector Automation User’s ManualCATC Version 1.02.5.10 IRecOptions:: SetFilterPolaritySets the whether to filter in or out the recording eve

Page 61 - • save – possible values:

60 FireInspector Automation User’s ManualCATC Version 1.02.5.11 IRecOptions::ResetResets recording options to its initial state.SyntaxHRESULT Reset (

Page 62

61 FireInspector Automation User’s ManualCATC Version 1.02.6 Errors Collection InterfaceThe IAnalyzerErrors dispinterface is a standard collection in

Page 63

62 FireInspector Automation User’s ManualCATC Version 1.02.6.1 IAnalyzerErrors::get_ItemRetrieves an Analyzer error. Use IAnalyzerErrors::get_Count to

Page 64 - 2.5.11 IRecOptions::Reset

63 FireInspector Automation User’s ManualCATC Version 1.02.6.2 IAnalyzerErrors::get_CountRetrieves the number of Analyzer errors. Use IAnalyzerErrors

Page 65

64 FireInspector Automation User’s ManualCATC Version 1.0{analyzer_error = analyzer_errors->GetItem(i);TCHAR cur_error[32];_stprintf( cur_error, _T

Page 66

65 FireInspector Automation User’s ManualCATC Version 1.02.7 Analyzer Events Callback InterfaceThe _IAnalyzerEvents interface is a standard COM event

Page 67

3 FireInspector Automation User’s ManualCATC Version 1.02. FireInspector Automation APIThis chapter describes the commands in the FireInspector Autom

Page 68

66 FireInspector Automation User’s ManualCATC Version 1.02.7.1 IAnalyzerEvents dispinterfaceIn order to retrieve the events from FireInspector applica

Page 69

67 FireInspector Automation User’s ManualCATC Version 1.02.7.2 IAnalyzerEvents::OnTraceCreatedFired when trace is created; this event is a result of

Page 70

68 FireInspector Automation User’s ManualCATC Version 1.0::MessageBox( NULL, er.Description(), _T("FwAnalyzer client"), MB_OK );else::Messag

Page 71

69 FireInspector Automation User’s ManualCATC Version 1.02.7.3 _IAnalyzerEvents::OnStatusReportFired when there is a change in analyzer's state

Page 72

70 FireInspector Automation User’s ManualCATC Version 1.0Select Case StateCase -1: GetRecordingStatus = "Idle"Case 0: GetRecordingStatus =

Page 73

71 FireInspector Automation User’s ManualCATC Version 1.0{switch ( subsystem ){case RECORDING_PROGRESS_REPORT:UpdateRecStatus( state, percent_done );

Page 74

72 FireInspector Automation User’s ManualCATC Version 1.0break;case FW_ASR_SYNC_STATE_SYNCING: _tcscpy( m_SyncStatus, _T("Syncing...") );bre

Page 75

73FireInspector Automation API User’s ManualCATC Version 1.0Appendix A: Setting Up FireInspector AutomationFireInspector Automation is an Applicatio

Page 76

74FireInspector Automation API User’s ManualCATC Version 1.0A.3 Setting Up Automation for Remote UseIf you intend to run automation over a network, yo

Page 77 - Automation

75FireInspector Automation API User’s ManualCATC Version 1.0Step 2 In the Open edit box within the Run dialog, type dcomcnfg.Step 3 Click OK.The Dist

Page 78 - A.4 DCOM Server Configuration

4 FireInspector Automation User’s ManualCATC Version 1.02.2 Command DescriptionsThe following descriptions are organized into five sections that corre

Page 79 - Step 3 Click OK

76FireInspector Automation API User’s ManualCATC Version 1.0Step 2 Click the Properties button.The FwAnalyzer Properties dialog box opens. The options

Page 80 - Step 3 Select Connect

77FireInspector Automation API User’s ManualCATC Version 1.0Set Access PermissionsAccess permission determines who may execute commands on the applic

Page 81 - Step 1 Select the

78FireInspector Automation API User’s ManualCATC Version 1.0The Registry Value Permissions dialog box appears.Step 4 Click the Add... button.The Add U

Page 82

79FireInspector Automation API User’s ManualCATC Version 1.0The Add Users and Groups dialog appears.Step 4 Select the group called Everyone.If you pr

Page 83

80FireInspector Automation API User’s ManualCATC Version 1.0Set User Identity PermissionsIf you want to create password-based security for individual

Page 84

81FireInspector Automation API User’s ManualCATC Version 1.0A.5 DCOM Client ConfigurationTo configure the DCOM client, run the DCOM configuration uti

Page 85 - A.5 DCOM Client Configuration

82FireInspector Automation API User’s ManualCATC Version 1.0Set Server LocationYou need to identify the device upon which the client will be executing

Page 86

83FireInspector Automation API User’s ManualCATC Version 1.0Step 2 Select the option Enable Distributed COM on this computer.Step 3 Set the Default A

Page 87 - Step 1 In the Distributed

84FireInspector Automation API User’s ManualCATC Version 1.0and press OK. The protocol will be added to the bottom of the list of DCOM Protocols. Use

Page 88

85FireInspector Automation API User’s ManualCATC Version 1.0Note If you prefer, you can copy the executable to the remote computer’s hard drive and l

Page 89

5 FireInspector Automation User’s ManualCATC Version 1.02.3 Primary Dual Interface for AnalyzerThe IFwAnalyzer interface derives from IAnalyzer inter

Page 90

86FireInspector Automation API User’s ManualCATC Version 1.0These messages indicate that a connection has been established with the FireInspector host

Page 91

87FireInspector Automation API User’s ManualCATC Version 1.0Appendix B: How to Contact CATCAppendix C: Warranty and LicenseComputer Access Technolo

Page 92

88FireInspector Automation API User’s ManualCATC Version 1.0

Commentaires sur ces manuels

Pas de commentaire