beautypg.com

1 ipacket interface, 1 ipacket::gettimestamp – Teledyne LeCroy SierraFC Automation API User Manual

Page 57

background image

LeCroy Corporation

SierraFC M8-4 API Reference Manual

Manual Version 1.00

57

6.1 IPacket Interface

The IPacket interface is a dual interface for the FCPacket object.

IPacket implements the following method:
GetTimestamp

Note: All methods of the IPacket interface are also available in the

IFCPacket interface

.


6.1.1 IPacket::GetTimestamp


HRESULT GetTimestamp (
[out, retval] double* timestamp


Returns the packet timestamp in nanoseconds.

Parameters

timestamp

Timestamp of the beginning symbol of the packet, from the start of

recording


Return values


Remarks


Example

WSH:

Set Analyzer = WScript.CreateObject( “LeCroy.SierraFC M8-4” )
Set Trace = Analyzer.MakeRecording( CurrentDir & "Input\test_ro.rec" )
TriggerPacket = Trace. GetTriggerPacketNum
Set Packet = Trace.GetBusPacket(TriggerPacket)
MsgBox "Trigger packet at " & Packet.GetTimestamp & " ns"


C++: