beautypg.com

1 ipacket interface, 1 ipacket::gettimestamp, Returns the packet timestamp in nanoseconds – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual

Page 106: Parameters, Return values, Remarks, Example, Ipacket interface, Ipacket::gettimestamp

background image

Teledyne LeCroy

Automation API for PETracer/PETrainer

101

7.1 IPacket interface

The IPacket

interface is a dual interface for

PEPacket object.


IPacket implements the following method:

GetTimestamp


Note: All methods of the IPacket interface are also available in the IPEPacket interface (see Page 57).

7.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( “CATC.PETracer” )
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++: