From: jblum Date: Mon, 2 Feb 2009 22:02:18 +0000 (+0000) Subject: removed auto tr from sources, combined auto tr with transmit options in sinks X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=4a0dc4d161e9f1a615808aee7a59d056beef30dc;p=debian%2Fgnuradio removed auto tr from sources, combined auto tr with transmit options in sinks git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10376 221aa14e-8319-0410-a670-987f0aec2ac5 --- diff --git a/grc/data/platforms/python/blocks/usrp_dual_sink_x.xml b/grc/data/platforms/python/blocks/usrp_dual_sink_x.xml index 5644759c..639737de 100644 --- a/grc/data/platforms/python/blocks/usrp_dual_sink_x.xml +++ b/grc/data/platforms/python/blocks/usrp_dual_sink_x.xml @@ -20,20 +20,20 @@ self.$(id).set_gain_b($gain_b) ################################################## ## Flex RF A ################################################## -#if $tx_enb_a.eval -self.$(id).set_enable_a($tx_enb_a) +#if $transmit_a.tx_enb +self.$(id).set_enable_a(True) #end if -#if $auto_tr_a.eval and $tx_enb_a.eval -self.$(id).set_auto_tr_a($auto_tr_a) +#if $transmit_a.auto_tr +self.$(id).set_auto_tr_a(True) #end if ################################################## ## Flex RF B ################################################## -#if $tx_enb_b.eval -self.$(id).set_enable_b($tx_enb_b) +#if $transmit_b.tx_enb +self.$(id).set_enable_b(True) #end if -#if $auto_tr_b.eval and $tx_enb_b.eval -self.$(id).set_auto_tr_b($auto_tr_b) +#if $transmit_b.auto_tr +self.$(id).set_auto_tr_b(True) #end if set_interp_rate($interpolation) set_frequency_a($frequency_a) @@ -111,44 +111,28 @@ self.$(id).set_auto_tr_b($auto_tr_b) ################################################### --> - TX Enable A - tx_enb_a + Transmit A + transmit_a enum - $tx_enb_a.hide + #if $transmit_a.tx_enb then 'none' else 'part'# - - - Auto T/R A - auto_tr_a - - enum - #if $tx_enb_a.eval then 'none' else 'all'# - - - - TX Enable B - tx_enb_b + Transmit B + transmit_b enum - $tx_enb_b.hide + #if $transmit_b.tx_enb then 'none' else 'part'# - - - Auto T/R B - auto_tr_b - - enum - #if $tx_enb_b.eval then 'none' else 'all'# - - - @@ -208,10 +176,8 @@ self.$(id).set_auto_tr_b($auto_tr_b) The USRP sink inputs 128 Megasamples per second / interpolation. -Flex RF boards only: The "Transmit Enable" configures the transmitter to be on or off. \ -Do not leave this unconfigured. - -Flex RF boards only: If enabled, "Auto Transmit/Receive Switching" handles the preference for transmit packets vs receive packets. \ -By default, "Auto TR" is disabled. +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. diff --git a/grc/data/platforms/python/blocks/usrp_dual_source_x.xml b/grc/data/platforms/python/blocks/usrp_dual_source_x.xml index e6617889..c37ae877 100644 --- a/grc/data/platforms/python/blocks/usrp_dual_source_x.xml +++ b/grc/data/platforms/python/blocks/usrp_dual_source_x.xml @@ -16,19 +16,7 @@ self.$(id).set_decim_rate($decimation) self.$(id).set_frequency_a($frequency_a, verbose=True) self.$(id).set_frequency_b($frequency_b, verbose=True) self.$(id).set_gain_a($gain_a) -self.$(id).set_gain_b($gain_b) -################################################## -## Flex RF A -################################################## -#if $auto_tr_a.eval and $rx_ant_a.flex -self.$(id).set_auto_tr_a($auto_tr_a) -#end if -################################################## -## Flex RF B -################################################## -#if $auto_tr_b.eval and $rx_ant_b.flex -self.$(id).set_auto_tr_b($auto_tr_b) -#end if +self.$(id).set_gain_b($gain_b) set_decim_rate($decimation) set_frequency_a($frequency_a) set_frequency_b($frequency_b) @@ -101,7 +89,7 @@ self.$(id).set_auto_tr_b($auto_tr_b) @@ -144,28 +132,9 @@ self.$(id).set_auto_tr_b($auto_tr_b) flex: - - Auto T/R A - auto_tr_a - - enum - #if $rx_ant_a.flex then 'none' else 'all'# - - - - @@ -208,25 +177,6 @@ self.$(id).set_auto_tr_b($auto_tr_b) flex: - - Auto T/R B - auto_tr_b - - enum - #if $rx_ant_b.flex then 'none' else 'all'# - - - - '$rx_ant_a' != '$rx_ant_b' Aout diff --git a/grc/data/platforms/python/blocks/usrp_simple_sink_x.xml b/grc/data/platforms/python/blocks/usrp_simple_sink_x.xml index d0a9287b..e88fcd7e 100644 --- a/grc/data/platforms/python/blocks/usrp_simple_sink_x.xml +++ b/grc/data/platforms/python/blocks/usrp_simple_sink_x.xml @@ -15,11 +15,11 @@ self.$(id).set_format(width=$format.width, shift=$format.shift) self.$(id).set_interp_rate($interpolation) self.$(id).set_frequency($frequency, verbose=True) self.$(id).set_gain($gain) -#if $tx_enb.eval -self.$(id).set_enable($tx_enb) +#if $transmit.tx_enb +self.$(id).set_enable(True) #end if -#if $auto_tr.eval and $tx_enb.eval -self.$(id).set_auto_tr($auto_tr) +#if $transmit.auto_tr +self.$(id).set_auto_tr(True) #end if set_interp_rate($interpolation) set_frequency($frequency) @@ -94,44 +94,28 @@ self.$(id).set_auto_tr($auto_tr) - TX Enable - tx_enb + Transmit + transmit enum - $tx_enb.hide + #if $transmit.tx_enb then 'none' else 'part'# - - - Auto T/R - auto_tr - - enum - #if $tx_enb.eval then 'none' else 'all'# - - - @@ -141,10 +125,8 @@ self.$(id).set_auto_tr($auto_tr) The USRP sink inputs 128 Megasamples per second / interpolation. -Flex RF boards only: The "Transmit Enable" configures the transmitter to be on or off. \ -Do not leave this unconfigured. - -Flex RF boards only: If enabled, "Auto Transmit/Receive Switching" handles the preference for transmit packets vs receive packets. \ -By default, "Auto TR" is disabled. +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. diff --git a/grc/data/platforms/python/blocks/usrp_simple_source_x.xml b/grc/data/platforms/python/blocks/usrp_simple_source_x.xml index cd2bf9d5..3fe6566d 100644 --- a/grc/data/platforms/python/blocks/usrp_simple_source_x.xml +++ b/grc/data/platforms/python/blocks/usrp_simple_source_x.xml @@ -14,10 +14,7 @@ self.$(id).set_format(width=$format.width, shift=$format.shift) #end if self.$(id).set_decim_rate($decimation) self.$(id).set_frequency($frequency, verbose=True) -self.$(id).set_gain($gain) -#if $auto_tr.eval and $rx_ant.flex -self.$(id).set_auto_tr($auto_tr) -#end if +self.$(id).set_gain($gain) set_decim_rate($decimation) set_frequency($frequency) set_gain($gain) @@ -116,25 +113,6 @@ self.$(id).set_auto_tr($auto_tr) flex:1 - - Auto T/R - auto_tr - - enum - #if $rx_ant.flex then 'none' else 'all'# - - - - Halfband Filters hb_filters diff --git a/grc/src/grc_gnuradio/usrp/dual_usrp.py b/grc/src/grc_gnuradio/usrp/dual_usrp.py index f95497cd..dd1e4605 100644 --- a/grc/src/grc_gnuradio/usrp/dual_usrp.py +++ b/grc/src/grc_gnuradio/usrp/dual_usrp.py @@ -76,8 +76,6 @@ class _dual_source(gr.hier_block2): ) def set_gain_a(self, gain): self._subdev_a.set_gain(gain) def set_gain_b(self, gain): self._subdev_b.set_gain(gain) - def set_auto_tr_a(self, auto_tr): self._subdev_a.set_auto_tr(auto_tr) - def set_auto_tr_b(self, auto_tr): self._subdev_b.set_auto_tr(auto_tr) class dual_source_c(_dual_source, common.usrp_source_c): pass class dual_source_s(_dual_source, common.usrp_source_s): pass diff --git a/grc/src/grc_gnuradio/usrp/simple_usrp.py b/grc/src/grc_gnuradio/usrp/simple_usrp.py index cc1938a0..819a01c2 100644 --- a/grc/src/grc_gnuradio/usrp/simple_usrp.py +++ b/grc/src/grc_gnuradio/usrp/simple_usrp.py @@ -64,7 +64,6 @@ class _simple_source(gr.hier_block2): verbose=verbose, ) def set_gain(self, gain): self._subdev.set_gain(gain) - def set_auto_tr(self, auto_tr): self._subdev.set_auto_tr(auto_tr) class simple_source_c(_simple_source, common.usrp_source_c): pass class simple_source_s(_simple_source, common.usrp_source_s): pass