Metadata-Version: 2.1
Name: pyB12MPS
Version: 1.0.9
Summary: A Python Package for Interfacing with the Bridge12 MPS
Home-page: http://www.bridge12.com/
Author: Bridge12 Technologies, Inc
Author-email: tkeller@bridge12.com
License: UNKNOWN
Project-URL: Source Code, https://github.com/Bridge12Technologies/pyB12MPS
Project-URL: Documentation, http://pyb12mps.bridge12.com
Description: # README #
        
        pyB12MPS is a python package for interfacing with Bridge12 MPS.
        
        The complete online documentation for the Bridge12 MPS is available [here](http://mps.bridge12.com).
        
        The complete online documentation for pyB12MPS is available [here](http://pyb12mps.bridge12.com).
        
        
        ### 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
        
        ```console
        python
        ```
        
        To start the MPS Server:
        
        ```python
        import pyB12MPS as mps
        
        mps.start()
        ```
        
        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:
        
        ```
        mps.stop()
        ```
        
        ### Sending MPS Commands ###
        
        Once the connection has been established, you can use a python terminal or script to send commands to the MPS.
        
        ```python
        import pyB12MPS as mps
        
        mps.freq(9.4) # set frequency to 9.4 GHz
        
        mps.freq() # Query the microwave frequency in GHz
        ```
        
        ### Example Script ###
        
        ```python
        import pyB12MPS as mps
        import time
        
        # Test if server is running
        if mps.test(): # 0 indicates normal operation of server
            mps.start(debug = True)
        
        # 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)
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
