summaryrefslogtreecommitdiff
path: root/grc/data
diff options
context:
space:
mode:
Diffstat (limited to 'grc/data')
-rw-r--r--grc/data/platforms/python/blocks/usrp2_probe.xml2
-rw-r--r--grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml16
-rw-r--r--grc/data/platforms/python/blocks/usrp2_source_xxxx.xml16
3 files changed, 23 insertions, 11 deletions
diff --git a/grc/data/platforms/python/blocks/usrp2_probe.xml b/grc/data/platforms/python/blocks/usrp2_probe.xml
index afe5cf4f4..cc3f9c2fd 100644
--- a/grc/data/platforms/python/blocks/usrp2_probe.xml
+++ b/grc/data/platforms/python/blocks/usrp2_probe.xml
@@ -12,7 +12,7 @@
<param>
<name>Interface</name>
<key>interface</key>
- <value>eth0</value>
+ <value></value>
<type>string</type>
</param>
<param>
diff --git a/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml b/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml
index d8aef1fa6..352fe4ce0 100644
--- a/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml
+++ b/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml
@@ -8,9 +8,15 @@
<name>USRP2 Sink</name>
<key>usrp2_sink_xxxx</key>
<import>from gnuradio import usrp2</import>
- <make>usrp2.sink_$(type.fcn)($interface, $mac_addr)
-self.$(id).set_interp_rate($interpolation)
-self.$(id).set_frequency($frequency)
+ <make>#if not $interface.eval and not $mac_addr.eval
+usrp2.sink_$(type.fcn)()
+#elif not $mac_addr.eval
+usrp2.sink_$(type.fcn)($interface)
+#else
+usrp2.sink_$(type.fcn)($interface, $mac_addr)
+#end if
+self.$(id).set_interp($interpolation)
+self.$(id).set_center_freq($frequency)
self.$(id).set_gain($gain)
#if $auto_tr.eval
self.$(id).set_auto_tr($auto_tr)
@@ -19,8 +25,8 @@ self.$(id).set_auto_tr($auto_tr)
self.$(id).set_enable($tx_enb)
#end if
</make>
- <callback>set_interp_rate($interpolation)</callback>
- <callback>set_frequency($frequency)</callback>
+ <callback>set_interp($interpolation)</callback>
+ <callback>set_center_freq($frequency)</callback>
<callback>set_gain($gain)</callback>
<param>
<name>Output Type</name>
diff --git a/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml b/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml
index 5ba4d3f64..548baa8d9 100644
--- a/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml
+++ b/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml
@@ -8,9 +8,15 @@
<name>USRP2 Source</name>
<key>usrp2_source_xxxx</key>
<import>from gnuradio import usrp2</import>
- <make>usrp2.source_$(type.fcn)($interface, $mac_addr)
-self.$(id).set_decim_rate($decimation)
-self.$(id).set_frequency($frequency)
+ <make>#if not $interface.eval and not $mac_addr.eval
+usrp2.source_$(type.fcn)()
+#elif not $mac_addr.eval
+usrp2.source_$(type.fcn)($interface)
+#else
+usrp2.source_$(type.fcn)($interface, $mac_addr)
+#end if
+self.$(id).set_decim($decimation)
+self.$(id).set_center_freq($frequency)
self.$(id).set_gain($gain)
#if $auto_tr.eval
self.$(id).set_auto_tr($auto_tr)
@@ -19,8 +25,8 @@ self.$(id).set_auto_tr($auto_tr)
self.$(id).select_rx_antenna($rx_ant)
#end if
</make>
- <callback>set_decim_rate($decimation)</callback>
- <callback>set_frequency($frequency)</callback>
+ <callback>set_decim($decimation)</callback>
+ <callback>set_center_freq($frequency)</callback>
<callback>set_gain($gain)</callback>
<param>
<name>Output Type</name>