summaryrefslogtreecommitdiff
path: root/gr-serial/grc/serial.xml
diff options
context:
space:
mode:
authormanojgudi2014-02-07 16:23:36 +0530
committermanojgudi2014-02-07 16:23:36 +0530
commit9f1489439f891a5c82b3d48999d70ac64a592488 (patch)
tree4d7216b031a56bdf76862ef80a4b9f868662df0a /gr-serial/grc/serial.xml
parent324438b65f3a2c58227fb0a304ba36e57a8a1b01 (diff)
downloadgnuradio-9f1489439f891a5c82b3d48999d70ac64a592488.tar.gz
gnuradio-9f1489439f891a5c82b3d48999d70ac64a592488.tar.bz2
gnuradio-9f1489439f891a5c82b3d48999d70ac64a592488.zip
Made Serial block as Hierarchical Block with Constant Source embedded
Diffstat (limited to 'gr-serial/grc/serial.xml')
-rw-r--r--gr-serial/grc/serial.xml14
1 files changed, 3 insertions, 11 deletions
diff --git a/gr-serial/grc/serial.xml b/gr-serial/grc/serial.xml
index 239b4ae88..f63588d8e 100644
--- a/gr-serial/grc/serial.xml
+++ b/gr-serial/grc/serial.xml
@@ -10,9 +10,8 @@
<key>gr_serial</key>
<category>serial</category>
- <import>from gnuradio import gr_ser</import>
- <make>gr_ser.ser()
-self.$(id).set_parameters($port, $baud, $bytesize, $parity, $stopbits)
+ <import>from gnuradio.serial import gr_serial as gr_serial </import>
+ <make>gr_serial.HierBlock($port, $baud, $bytesize, $parity, $stopbits)
</make>
<param>
<name>IO Type</name>
@@ -83,14 +82,7 @@ self.$(id).set_parameters($port, $baud, $bytesize, $parity, $stopbits)
-->
<check>$num_inputs &gt; 0</check>
<check>$vlen &gt; 0</check>
-
- <sink>
- <name>in</name>
- <type>$(str($type).split('_')[0])</type>
- <vlen>$vlen</vlen>
- <nports>$num_inputs</nports>
- </sink>
-
+
<source>
<name>out</name>
<type>$(str($type).split('_')[1])</type>