Number of Samples Problem

I am getting an error when running the usrp_rx_cfile.py example. I try
to specify the number of samples to collect using the -N option, and I
keep getting an error that the destination is already in use. If I
don’t use the -N option, I don’t get this error and it works fine. The
actual error that I get is shown below:

Traceback (most recent call last):
File “usrp_rx_cfile_new.py”, line 113, in ?
my_graph().run()
File “usrp_rx_cfile_new.py”, line 86, in init
self.connect(self.u, self.head, self.convert2, self.dst2)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py”,
line 115, in connect
self._connect (points[i-1], points[i])
File
“/usr/local/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py”,
line 120, in _connect
self._connect_prim (s, d)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py”,
line 127, in _connect_prim
self._check_dst_in_use (dst_endpoint)
File
“/usr/local/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py”,
line 219, in _check_dst_in_use
raise ValueError, (“destination endpoint already in use: %s” %
(dst_endpoint))
ValueError: destination endpoint already in use: <endpoint (<gr_block
head (5)>, 0)>

Thanks,
Nick

[email protected] wrote:

I am getting an error when running the usrp_rx_cfile.py example.

Traceback (most recent call last): File “usrp_rx_cfile_new.py”

The error message shows a different file name–is this something new
that you wrote? Also, the line numbers don’t match the usrp_rx_cfile.py
in the tree.

In general, the ‘destination endpoint in use’ error happens during the
fg.connect call when the block and input port being connected to has
already been used in a prior fg.connect call. From the error traceback
you provided, it’s saying that gr.head input port 0 has already been
part of a connect call. So follow the logic of your script to see how
this could have happened.


Johnathan C.
Corgan Enterprises LLC
http://corganenterprises.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs