Manual
Teledyne LeCroy Automation API for PETracer/PETrainer
109
7.2.5 IPEPacket::GetDirection
HRESULT GetDirection (
[out, retval] long* direction )
Returns direction (upstream/downstream) of this packet.
Parameters
direction
0 – upstream packet
1 – downstream packet
Return values
Remarks
Example
WSH:
CurrentDir = Left( WScript.ScriptFullName, InstrRev( WScript.ScriptFullName, “\” ) )
Set Analyzer = WScript.CreateObject( “CATC.PETracer” )
Set Trace = Analyzer.OpenFile( CurrentDir & “Input\errors.pex” )
Set Packet = Trace.GetBusPacket( 0 )
MsgBox "Direction: " & Packet.GetDirection
C++: