beautypg.com

2 specifying port configuration, Specifying port configuration – Teledyne LeCroy ST Automated Test Suite User Manual User Manual

Page 14

background image

14

4.2 Specifying Port Configuration

After creating the SierraSASAnalyzer and STATS automation objects, specify the port configuration
by calling the SetPortConfiguration function. This function specifies the functionality for each port
(Refer to the Automation API Reference Manual for port configuration lists and their values). Use the
following code to set port configuration:


MySASAutomation.SetPortConfiguration 0, 72 ' 72 is the code for DEVICE_CONFIG_AT_0_0_0
If Err.Number <> 0 Then

MySTATS.ReportError Err.number, Err.Description

Else

MySTATS.ReportText ("Set port configuration is done")

End If