I am trying to make a block which copies (samples_per_symbol * no. of symbols ) samples from the input 0 stream whenever it receives a trigger (i.e. a 1) in input 1 stream.
My block is giving expected output when it runs but when it does not work in gnuradio companion it gives this error.
Traceback (most recent call last):
File "/home/raghav/Documents/Project/gnuradio/my_demux_test/top_block.py", line 123, in <module>
main()
File "/home/raghav/Documents/Project/gnuradio/my_demux_test/top_block.py", line 111, in main
tb = top_block_cls()
File "/home/raghav/Documents/Project/gnuradio/my_demux_test/top_block.py", line 88, in __init__
self.connect((self.my_module_demux_my_demux_1, 0), (self.blocks_throttle_0, 0))
File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 47, in wrapped
func(self, src, src_port, dst, dst_port)
File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 110, in connect
self.primitive_connect(*args)
File "/usr/local/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 5334, in primitive_connect
return _runtime_swig.top_block_sptr_primitive_connect(self, *args)
ValueError: port number 0 exceeds max of (none)
>>> Done (return code -11)
%-------------------------------------
I am attaching both the flowgraph that I use for testing and the code I a have written for creating OOT module.
The code is almost similar to the code of header_payload_demux block.
Please look into this as soon as possible.
Regards,
Raghav Gupta
MTech. Research Assistant, IIT Bombay