Teledyne-lecroy FireInspector Automation Application Programming I Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Software Teledyne-lecroy FireInspector Automation Application Programming I herunter. Teledyne LeCroy FireInspector Automation Application Programming Interface User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 92
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 0
1 2 3 4 5 6 ... 91 92

Inhaltsverzeichnis

Seite 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

Seite 2 - Trademarks and Servicemarks

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

Seite 3 - TABLE OF CONTENTS

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

Seite 4

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

Seite 5 - 1. Introduction

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

Seite 6

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

Seite 7 - 2.1 Introduction

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

Seite 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

Seite 9

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

Seite 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

Seite 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.

Seite 12

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

Seite 13

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

Seite 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

Seite 15

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

Seite 16 - • E_NOTIMPL

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

Seite 17

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

Seite 18

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

Seite 19

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

Seite 20

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

Seite 21

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

Seite 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

Seite 23

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

Seite 24

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

Seite 25

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

Seite 26

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

Seite 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

Seite 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

Seite 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

Seite 30

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

Seite 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

Seite 32

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

Seite 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

Seite 34

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

Seite 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

Seite 36

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

Seite 37

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

Seite 38

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

Seite 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

Seite 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

Seite 41

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

Seite 42

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

Seite 43

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

Seite 44

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

Seite 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

Seite 46

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

Seite 47

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

Seite 48

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

Seite 49

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

Seite 50

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

Seite 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]

Seite 52

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

Seite 53

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

Seite 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

Seite 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

Seite 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

Seite 57

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

Seite 58

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

Seite 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

Seite 60

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

Seite 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 (

Seite 62

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

Seite 63

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

Seite 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

Seite 65

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

Seite 66

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

Seite 67

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

Seite 68

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

Seite 69

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

Seite 70

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

Seite 71

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

Seite 72

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

Seite 73

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

Seite 74

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

Seite 75

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 83

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

Seite 84

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 89

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

Seite 90

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

Seite 91

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

Seite 92

88FireInspector Automation API User’s ManualCATC Version 1.0

Kommentare zu diesen Handbüchern

Keine Kommentare