From 07bd878bc30f7ab54afc1e2f0055419388c3c992 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sun, 13 Mar 2011 17:33:33 -0700 Subject: grc: moved all usrp1 and usrp2 stuff out of grc and into gr-usrp*/grc Moved grc xml files, python wrappers (USRP1 only), probe apps + freedesktop files. When the gr-usrp and gr-usrp2 directories are removed, grc will not have to change. Minor change: the freedesktop files are always installed now. This does not mean that they are installed properly with xdg, it just means that the runtime can have access to the icons. --- gr-usrp/grc/usrp_dual_sink_x.xml | 204 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 204 insertions(+) create mode 100644 gr-usrp/grc/usrp_dual_sink_x.xml (limited to 'gr-usrp/grc/usrp_dual_sink_x.xml') diff --git a/gr-usrp/grc/usrp_dual_sink_x.xml b/gr-usrp/grc/usrp_dual_sink_x.xml new file mode 100644 index 000000000..babc124d0 --- /dev/null +++ b/gr-usrp/grc/usrp_dual_sink_x.xml @@ -0,0 +1,204 @@ + + + + USRP1 Dual Sink + usrp_dual_sink_x + USRP + from grc_gnuradio import usrp as grc_usrp + grc_usrp.dual_sink_$(type.fcn)(which=$which) +self.$(id).set_interp_rate($interpolation) +self.$(id).set_frequency_a($frequency_a, verbose=True#slurp +#if $lo_offset_a() != float('inf') +, lo_offset=$lo_offset_a#slurp +#end if +) +self.$(id).set_frequency_b($frequency_b, verbose=True#slurp +#if $lo_offset_b() != float('inf') +, lo_offset=$lo_offset_b#slurp +#end if +) +self.$(id).set_gain_a($gain_a) +self.$(id).set_gain_b($gain_b) +################################################## +## Flex RF A +################################################## +#if $transmit_a.tx_enb +self.$(id).set_enable_a(True) +#end if +#if $transmit_a.auto_tr +self.$(id).set_auto_tr_a(True) +#end if +################################################## +## Flex RF B +################################################## +#if $transmit_b.tx_enb +self.$(id).set_enable_b(True) +#end if +#if $transmit_b.auto_tr +self.$(id).set_auto_tr_b(True) +#end if + set_interp_rate($interpolation) + set_frequency_a($frequency_a#slurp +#if $lo_offset_a() != float('inf') +, lo_offset=$lo_offset_a#slurp +#end if +) + set_frequency_b($frequency_b#slurp +#if $lo_offset_b() != float('inf') +, lo_offset=$lo_offset_b#slurp +#end if +) + set_gain_a($gain_a) + set_gain_b($gain_b) + + Input Type + type + enum + + + + + Unit Number + which + 0 + int + + + Interpolation + interpolation + int + + + Frequency A (Hz) + frequency_a + real + + + Frequency B (Hz) + frequency_b + real + + + LO Offset A (Hz) + lo_offset_a + float('inf') + real + #if $lo_offset_a() == float('inf') then 'part' else 'none'# + + + + LO Offset B (Hz) + lo_offset_b + float('inf') + real + #if $lo_offset_b() == float('inf') then 'part' else 'none'# + + + + Gain A (dB) + gain_a + 0 + real + + + Gain B (dB) + gain_b + 0 + real + + + + Transmit A + transmit_a + + enum + #if $transmit_a.tx_enb then 'none' else 'part'# + + + + + + + Transmit B + transmit_b + + enum + #if $transmit_b.tx_enb then 'none' else 'part'# + + + + + + Ain + $type + + + Bin + $type + + +The USRP sink inputs 128 Megasamples per second / interpolation. + +Input amplitude should be between 0 and 32767. + +Flex RF boards only: The "Transmit Setting" must be configured. \ +When set to "Enable" the transmitter is always on. \ +When set to "Auto Transmit/Receive", the transmitter is disabled while receiving. + + -- cgit