Skip to content

sjtoik/pyLMS7002Soapy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LMS7002M Python package

Codacy Badge

The pyLMS7002Soapy Python package is platform-independent, and is intended for fast prototyping and algorithm development. It provides low level register access and high level convenience functions for controlling the LMS7002M chip and evaluation boards. Supported evaluation boards are:

  • LimeSDR
  • LimeSDR Mini

The package consists of Python classes which correspond to physical or logical entities. For example, each module of LMS7002M (AFE, SXT, TRF, ...) is a class. The LMS7002M chip is also a class containing instances of on-chip modules. The evaluation board class contains instances of on-board chips, such as LMS7002, ADF4002, etc. Classes follow the hierarchy and logical organization from evaluation board down to on-chip register level.

SoapySDR interface is required for establishing an USB connection, and can be used for high level functions, such as reading samples.

Installation

Since this isn't completely thought out, please install inside a virtualenv. Activate your environment and run the following

pyLMS7002Soapy Installation (in virtualenv ideally)
$ python setup.py install
Run Python 3 SNA - "measurement name" + fast sweep(0|1) + start frequency(MHz) + end frequency(MHz)
$ cd examples    
$ python mSNA.py test 1 400 500

Module installation can be verified from Python:

$ python setup.py test

If there is no error, the module is correctly installed.

Examples

Vector Network Analyser (VNA)

$ cd examples
$ python measureVNA.py

Scalar Network Analyser (SNA)

$ cd examples
$ python mSNA.py

Scalar network analyzer is preferred for measurements and is much faster than VNA.

Licensing

pyLMS7002Soapy is copyright 2018 Lime Microsystems and provided under the Apache 2.0 License.

Changes in files are documented to the best of my abilities . . .

About

Python bindings for LMS7002M with SoapySDR backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%