-
Hey, in the past couple of months I've lost track of this project, so maybe there is already some working examples that I am unaware of. For starters, I would like to do some basic signal analysis, i.e., plot the spectrum of the signal and plot the signal over time. This is something I know GnuRadio is capable of (and it works okayish). Is there an example for how to do this with FutureSDR, e.g. with python using matplotlib or so? If not, how could I achieve this? I presume, there is no integrated plotting facilities in FutureSDR yet, since afaik there is not yet any great plotting backends for Rust. Some time ago I got the spectrum example working via WASM, but it was a pain in the neck with the USB drivers for web I am not familiar with all the web frameworks used. So it was also a bit overkill if I didn't need it to run on the web. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There is the spectrum example, which should provide roughly what you are suggesting. (Start the flowgraph ( Instead of a web GUI, you could also use a Python script to read the data from the websocket: Running everything inside the browser is possible, but pretty tricky. It's at the moment only a proof-of-concept. (I just found some bugs, when testing the example. Please try (for now) with the |
Beta Was this translation helpful? Give feedback.
There is the spectrum example, which should provide roughly what you are suggesting. (Start the flowgraph (
cargo run --bin cpu --features cpu
) and go to http://127.0.0.1:1337/spectrum3d.html or http://127.0.0.1:1337/api/fg/0/ for some json description of the flowgraph. There is also the new futuresdr-remote crate which should simplify interaction with a running flowgraph. https://docs.rs/futuresdr-remote/latest/futuresdr_remote/)Instead of a web GUI, you could also use a Python script to read the data from the websocket:
https://twitter.com/bastibl/status/1625528632587304962
https://github.com/bastibl/maia-sdr/blob/main/maia-httpd/util/spectrum_client.py
Running everything inside the bro…