Metadata-Version: 2.1
Name: xfftspy
Version: 0.1.3
Home-page: https://github.com/ogawa-ros/xfftspy
Author: Nishimura, Atsushi
Author-email: ars096@gmail.com
License: MIT
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Description-Content-Type: text/markdown
License-File: LICENSE

# xfftspy

## Installation
`pip install xfftspy`


## Usage

    >>> import xfftspy

    # initialize XFFTS boards
    >>> cmd = xfftspy.udp_client(host='localhost')
    >>> cmd.stop()
    >>> cmd.set_synctime(100000)          # synctime : 100 ms
    >>> cmd.set_usedsections([1])         # use board : 1
    >>> cmd.set_board_bandwidth(1, 2500)  # bandwidth : 2500 MHz
    >>> cmd.configure()                   # apply settings
    >>> cmd.caladc()                      # calibrate ADCs
    >>> cmd.start()                       # start measurement
    
    # receive spectra
    >>> rcv = xfftspy.data_consumer(host='localhost')
    >>> rcv.clear_buffer()
    >>> rcv.receive_once()
    
