discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Simple USRP to baudline script


From: Ken Harris
Subject: [Discuss-gnuradio] Simple USRP to baudline script
Date: Wed, 6 Oct 2010 10:55:57 -0700

I made this simple script that takes a signal from the fabulous USRP
and sends it the fabulous "baudline" software, so I thought I'd share
it.

FYI, this runs on Fedora 13.

#!/bin/sh

### A simple script to get a signal from the fabulous USRP and
### use the fabulous "baudline" for display

freq0=$1        ## NB: don't use "M" or "G" , ie use 88500000, not 88.5M
decim0=$2       ## eg: 16, 32, 64
usrpargs0="$3"  ## eg: "-R B -g 60"

###################

usrpsamplerate0=64000000
baudlinesamplerate0=$(($usrpsamplerate0 / $decim0))

#baudlineformat0=le32f ; usrpformat0="" ## floating point
baudlineformat0=le16 ; usrpformat0="--output-shorts"    ## 16 signed
integers, little endian

usrp_rx_cfile.py $usrpformat0 $usrpargs0 -f $freq0 -d $decim0 /dev/stdout | \
        baudline -reset -channels 2 -quadrature -flipcomplex -stdin \
        -basefrequency $freq0 -format $baudlineformat0 \
        -samplerate $baudlinesamplerate0



reply via email to

[Prev in Thread] Current Thread [Next in Thread]