README
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.
Requirements
- Python3 (>= 3.6)
- numpy, 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
python
import pyB12MPS
mps = pyB12MPS.MPS()
The MPS will reset and the python environment will hang until the MPS has initialized.
To close the MPS serial port:
mps.close()
Sending MPS Commands
Once the connection has been established, you can send commands to the MPS.
mps.freq(9.4) # set frequency to 9.4 GHz
mps.freq() # Query the microwave frequency in GHz
Example Script
import pyB12MPS
import time
mps = pyB12MPS.MPS()
# Number of Rx voltage points to acquire
pts = 10
# Time delay between measurements in seconds
dt = 0.5
rxVoltageList = []
for ix in range(pts):
# delay
time.sleep(dt)
# Read MPS Rx diode voltage
rxVoltage = mps.rxpowermv()
# Print Rx voltage reading
print('Rx Voltage: %0.01f'%rxVoltage)
rxVoltageList.append(rxVoltage)
print('Rx Voltage Readings:')
print(rxVoltageList)
Metadata
Release files for pyB12MPS 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyB12MPS-2.0.0.tar.gz | 9.3 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyB12MPS-2.0.0-py3.8.egg | Legacy Egg format | - | - | Details |
| pyB12MPS-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.2 kB
Release files / pyB12MPS-2.0.0.tar.gz
| Download URL | pyB12MPS-2.0.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1540db8df1dd25c92501c36653fceab5a66fa896f5c520af6e8c9ba335a91168
|
|
BLAKE2b-256 checksum How to use checksums |
ef5ed9b04d51f4ae062c248b4f11309a0b768eaf63b270aacc5c0a70d522463a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.1
|
Release files / pyB12MPS-2.0.0-py3.8.egg
| Download URL | pyB12MPS-2.0.0-py3.8.egg |
|---|---|
| Size | 42.0 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
6c7b2cf63dda5c6e38fed15f6964200366c480d172d3393e145239b9fdd80d03
|
|
BLAKE2b-256 checksum How to use checksums |
9d89570434f924c85801432ab60c2748dbf37616ce2d0c744ce98afbc60a1a18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.1
|
Release files / pyB12MPS-2.0.0-py3-none-any.whl
| Download URL | pyB12MPS-2.0.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f3fa819b111d3ca4914a7627fe29d82b992ec559ce2228aa62053c3f580d671a
|
|
BLAKE2b-256 checksum How to use checksums |
660b46fa873bd3dd4d801713d99e9f058e0875fed67b343b8908a07b040f0d18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.1
|