In [1]:
# Import SPI rack and S5i module
from spi_rack import SPI_rack
from S5i.S5i_module import S5i_module

import time

In [2]:
# Open SPI rack and set the reference frequency to 10 MHz
spi_rack = SPI_rack('COM18', 1000000, 1)
spi_rack.set_ref_frequency(10)

In [4]:
# Add the S5i module to the SPI rack on address 3
S5i = S5i_module(spi_rack, 3)

In [6]:
# Slowly sweep RF frequency to see effects on the phase
for i in range(0,100):
    S5i.set_frequency(100+i)
    time.sleep(0.2)

In [5]:
# Set the RF frequency
S5i.set_frequency(1800.3)

In [6]:
# Close the SPI rack connection
spi_rack.close()

In [ ]: