pip install xfftspy
>>> 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()