10 ipegenoptions2::setinvertpolarity, Parameters, Return values – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual
Page 103: Remarks, Example, For i = 1 to 4, Ipegenoptions2::setinvertpolarity

Teledyne LeCroy
Automation API for PETracer/PETrainer
98
6.3.10 IPEGenOptions2::SetInvertPolarity
HRESULT SetInvertPolarity (
[in] EDirection direction,
[in] int lane,
[in] BOOL invert )
Allows polarity inversion on the specified lane and specified traffic direction.
Parameters:
direction
Enumerated value that provides traffic direction for polarity inversion;
EDirection has the following values:
DIRECTION_UPSTREAM (0) - upstream traffic
DIRECTION_DOWNSTREAM (1) - downstream traffic
lane
Specifies the lane to invert polarity on
invert
Sets polarity inversion on the specified lane of the specified link
direction
Return values
Remarks
Example
WSH:
Set Analyzer = WScript.CreateObject( “CATC.PETracer” )
Set GenOptions = Analyzer.GetGenerationOptions( )
For i = 1 To 4
GenOptions.SetInvertPolarity( 0, i, 0 )
GenOptions.SetInvertPolarity( 0, i, 1 )
Next
C++: