Skip to main content

A Python Package for Interfacing with the Bridge12 MPS

Project description



pyB12MPS is a python package for interfacing with Bridge12 MPS.

The complete online documentation for the Bridge12 MPS is available here.

The complete online documentation for pyB12MPS is available here.


  • Python3 (>= 3.6)
  • numpy, pySerial
python -m pip install numpy
python -m pip install pyserial

Communicating with the Bridge12 MPS

First make sure the Bridge12 MPS is connected to the computer via a USB cable and the system is powered ON.

In a terminal window, start a python environment


To start the MPS Server:

import pyB12MPS as mps


The MPS will reset and the python environment will hang until the connection has been established. The server will run in the background until the stop command is sent.

To stop the MPS Server:


Sending Client Commands

Once the connection has been established, you can use the client script to send commands to the MPS.

import pyB12MPS as mps

mps.freq(9.4) # set frequency to 9.4 GHz

mps.freq() # Query the microwave frequency in GHz

Example Script

import pyB12MPS as mps
import time

# Start Bridge12 MPS server

# number of points to acquire
pts = 10

# Delay time between measurements
dt = 1.

# Pre-allocate list for storing voltages
rxVoltageList = []

for ix in range(pts):
    # delay in seconds

    # read Rx voltage in mV
    rxVoltage = mps.rxpowermv()

    # Append Rx voltage to list

# Display the result

# Stop Bridge12 MPS Server

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyB12MPS, version 1.0.8
Filename, size File type Python version Upload date Hashes
Filename, size pyB12MPS-1.0.8-py3-none-any.whl (13.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyB12MPS-1.0.8.tar.gz (13.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page