Examples¶
These examples may be found in the “examples” directory included with the PyRF source code.
discovery.py / twisted_discovery.py¶
These examples detect WSA devices on the same network
Example output:
WSA4000 00:50:c2:ea:29:14 None at 10.126.110.111
WSA4000 00:50:c2:ea:29:26 None at 10.126.110.113
show_i_q.py / twisted_show_i_q.py¶
These examples connect to a device specified on the command line, tunes it to a center frequency of 2.450 MHz then reads and displays one capture of 1024 i, q values.
Example output (truncated):
0,-20
-8,-16
0,-24
-8,-12
0,-32
24,-24
32,-16
-12,-24
-20,0
12,-32
32,-4
0,12
-20,-16
-48,16
-12,12
0,-36
4,-12
matplotlib_plot_sweep.py¶
This example connects to a device specified on the command line, and plots a complete sweep of the spectrum using NumPy and matplotlib.
pyqtgraph_plot_block.py¶
This example connects to a device specified on the command line, tunes it to a center frequency of 2.450 MHz then continually captures and displays an FFT in a GUI window.