beautypg.com

6 simplefilter, 1 simplefilter::setenabled, Puts the filter into enabled or disabled state – Teledyne LeCroy Automation API for Teledyne LeCroy PETracer_PETrainer User Manual

Page 86: 2 simplefilter::isenabled, Retrieves filter's state, 3 simplefilter::setdirection, Sets the filter's direction, Parameters, E_dir - enum that can have following values, Direction_upstream ( 0 )

background image

Teledyne LeCroy

Automation API for PETracer/PETrainer

81

5.6 SimpleFilter



SimpleFilter allows enabling /disabling the filter and setting data stream direction..

The SimpleFilter interface implements following methods SetEnabled

SetEnabled

IsEnabled

SetDirection

GetDirection

5.6.1 SimpleFilter::SetEnabled

HRESULT SetEnabled ( [in] BOOL b_enabled )


Puts the filter into enabled or disabled state.

5.6.2 SimpleFilter::IsEnabled

HRESULT IsEnabled ( [out, retval] BOOL* pb_enabled )

Retrieves filter's state.

5.6.3 SimpleFilter::SetDirection

HRESULT SetDirection ( [in] EDirection e_dir )


Sets the filter's direction.

Parameters:
e_dir -

enum that can have following values:

DIRECTION_UPSTREAM

( 0 )

DIRECTION_DOWNSTREAM

( 1 )

DIRECTION_BOTH

( 2 )

DIRECTION_NONE

( 4 )

Example


ENFORCE = 1
FILTER_PERRET_OS_SKIP = 1
DIRECTION_DOWNSTREAM = 1
STATE_ENABLED = 1

Set Analyzer = WScript.CreateObject("CATC.PETracer")
Set recOpt = Analyzer.GetRecordingOptions()
recOpt.SetRecMode(2)
Set simplefilter = recOpt.GetSimpleFilter(FILTER_PERRET_OS_SKIP, ENFORCE)
simpleFilter.SetEnabled(STATE_ENABLED)
simpleFilter.SetDirection(DIRECTION_DOWNSTREAM)