beautypg.com

Teledyne LeCroy WaveRunner Automation Command User Manual

Page 100

background image

Automation Command and Query Reference Manual - Control Reference

Polarity

Enum

In many electrical standards, such as DS-1, alternate “ones” are inverted. Each time a one is
transmitted it is either a positive or negative going pulse depending upon the polarity of the
previous one. This type of coding is referred to as AMI (alternate mark inversion). The Polarity
control allows you to select which polarity (positive or negative) pulse to test.
The STS-3E and STM-1E standards use CMI (code mark inversion) pulse coding. In CMI coding,
a one remains high for the full bit period while a zero has a transition to the low state in the middle
of the bit period. The Polarity control allows you to select whether a 1 or 0 is to be tested.

Description

' Visual Basic Script
Set app = CreateObject("LeCroy.WaveMasterApplication.1")

'Select a stadard and set polarity to 'neg'
app.ElectricalTelecom.Standard = "E1Coax"
app.ElectricalTelecom.Polarity = "neg"
app.ElectricalTelecom.Setup

Example

Values

neg

Negative pulse

pos

Positive pulse

Run

Action

The Setup button applies the appropriate settings to the oscilloscope for testing the selected
standard. Different standards require a particular termination, and an error message will appear at
the bottom of the oscilloscope screen if the wrong (or no) adapter is present. However, this error
will not prevent the instrument from making the measurement; that is, measurements can be
made without the specific adapters. But if the signal is out of range for the standard, the setup
operation will generate an error message and the Run button will be grayed out. The signal will
appear on the screen, but no testing will be possible.
Before the Setup button is pressed, the Run and Clear Sweeps buttons appear grayed out.
These buttons become available (not grayed out) upon successful completion of a setup. At that
time, a Re-Align button will replace the Setup button.

Description

' Visual Basic Script
Set app = CreateObject("LeCroy.WaveMasterApplication.1")

'Select an stadard and run the test
app.ElectricalTelecom.Standard = "E1Coax"
app.ElectricalTelecom.Setup
app.ElectricalTelecom.Run
app.Sleep 5000
app.ElectricalTelecom.Pause 'pause the test after 5 seconds
app.Sleep 5000
app.ElectricalTelecom.Run 'and continue after 5 other seconds

Example

1-92

918500 RevA