Demo of a live fft plot running remotely through a ssh terminal

http://www.zshare.net/video/819531116687965a/

Josh:

That’s really cool. I could use something like that for a machine with a
USRP2 that I sometimes control remotely. How did you get the FFT to
display in ASCII text via an SSH terminal? Was it a modification of
“usrp2_fft.py”? Or is it something you wrote custom for yourself?

Steve McMahon

On 10/25/2010 03:45 PM, Steve M. wrote:

Josh:

That’s really cool. I could use something like that for a machine with a USRP2
that I sometimes control remotely. How did you get the FFT to display in ASCII
text via an SSH terminal? Was it a modification of “usrp2_fft.py”? Or is it
something you wrote custom for yourself?

Steve McMahon

Yes, that was cool.

But what’s wrong with simply using X forwarding over SSH? Works for
me.


Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org

That’s really cool. I could use something like that for a machine
with a USRP2 that I sometimes control remotely. How did you get the
FFT to display in ASCII text via an SSH terminal? Was it a
modification of “usrp2_fft.py”? Or is it something you wrote custom
for yourself?

I made a little c++ header with 2 functions:

  • a log-power-dft (in case you dont want to link fftw)
  • a function to turn dft bins into a printable string

http://pastebin.com/R6dS9xUj

There is an example in uhd that uses this to make a live dft plotter.
The app also uses a little bit of curses for clearing the screen and
getting the terminal dimensions.

See host/examples/rx_ascii_art_dft.cpp

-Josh

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs