Skip to content

Examples

Scripts in examples/. Each runs on the simulated radio (no hardware), and tests/test_examples.py runs every one, so the code in the guides is the code that is tested.

Script Shows Guide
quickstart.py Find, open, tune and read Receiving
receiving.py read with RxMeta, read_into, retunes, lost samples, stalls, stream, sweep Receiving
controls.py caps, gain as a fraction, in dB and by stage, settings, strict Controls
channels.py Two channels received and transmitted together Controls
files.py Raw files, SigMF with stream metadata, a recording as a radio, transmitting into a file Sample files
air.py Simulated radios sharing an air: exact in one process, and in time on the wall clock Simulated radios
remote.py A server, a controller and a viewer, the server's lists and counters (needs pysdrlib[remote]) Remote radios
custom_driver.py A Device written and registered outside pysdrlib Drivers of your own
python examples/quickstart.py