discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] port number 1 exceeds max of 0


From: Sumit Kumar
Subject: [Discuss-gnuradio] port number 1 exceeds max of 0
Date: Tue, 25 Sep 2018 15:48:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

Hi,

I have made a block with take two streams of input and produces four stream of outputs.

The impl.cc file has the following declaration:

static int ios1[] = {48, 48*sizeof(float), 48, 48*sizeof(float)};
static std::vector<int> iosig1(ios1, ios1+sizeof(ios1)/sizeof(int));

soft_frame_equalizer_impl_dc::soft_frame_equalizer_impl_dc(Equalizer_soft_dc algo, double freq, double bw, int scaling, int threshold, bool log, bool debug) :
    gr::block("soft_frame_equalizer_dc",
            gr::io_signature::make2(2, 2, 64 * sizeof(gr_complex), 64 * sizeof(gr_complex)),
            gr::io_signature::makev(4, 4, iosig1)),

I made the corresponding xml file also. No error during compiling but when I connect my block and run I get the error:

  File "/home/john/myprefix/src/gr-ieee-80211/examples/sbmrc_testing.py", line 555, in <module>
    main()
  File "/home/john/myprefix/src/gr-ieee-80211/examples/sbmrc_testing.py", line 543, in main
    tb = top_block_cls(bandwidth=options.bandwidth, encoding=options.encoding, frequency=options.frequency, sensitivity=options.sensitivity)
  File "/home/john/myprefix/src/gr-ieee-80211/examples/sbmrc_testing.py", line 350, in __init__
    self.connect((self.fft_vxx_0_1, 0), (self.ieee802_11_soft_frame_equalizer_dc_0, 1))
  File "/home/john/myprefix/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 47, in wrapped
    func(self, src, src_port, dst, dst_port)
  File "/home/john/myprefix/lib/python2.7/dist-packages/gnuradio/gr/hier_block2.py", line 110, in connect
    self.primitive_connect(*args)
  File "/home/john/myprefix/lib/python2.7/dist-packages/gnuradio/gr/runtime_swig.py", line 4574, in primitive_connect
    return _runtime_swig.top_block_sptr_primitive_connect(self, *args)
ValueError: port number 1 exceeds max of 0

I am attaching the xml file. Can anyone help me figuring out the mistake :)

Regards

Sumit



Attachment: ieee802_11_soft_frame_equalizer_dc.xml
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]