Instrument: PulsePatternGeneratorΒΆ

In [1]:
%load_ext autoreload
%autoreload 2
import time
from start import start

ppg = start('Anritsu MP1763B Pulse Pattern Generator')
It is alive
ANRITSU,MP1761A,0,0001
Here is what to test:
startup
setPrbs
setPattern
getPattern
on
syncSource
amplAndOffs
In [2]:
ppg.on(True)

origSrc = ppg.syncSource()
print('Sync source is', origSrc)
ppg.syncSource('clock64')
ppg.syncSource(origSrc)

ppg.amplAndOffs()
Sync source is fixed
Out[2]:
(0.4, 0.0)
In [3]:
# Mess with the pattern here, watch the lights in lab alternate
ppg.setPrbs(16)
print('Pattern was', ppg.getPattern())
for _ in range(4):
    print('flipping')
    ppg.setPattern(1 - ppg.getPattern())
    time.sleep(1)
Pattern was [0 0 1 0 0 1 0 1 0 1 0 1 0 1 1 1]
flipping
flipping
flipping
flipping
In [ ]: