discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] UDP port number


From: Ziad ElMarakshy
Subject: Re: [Discuss-gnuradio] UDP port number
Date: Tue, 3 Jul 2007 11:46:19 -0700 (PDT)

thanks Dev for your help, i tried removing the oscope and  the fft and its
working fine .

I think now i need to connect the output of conv = gr.float_to_complex()   
to  the scope , does anyone have a clue how can i do that with the
self.connect

 









Dev Ramudit wrote:
> 
> Anyone feel free to correct me, but it seems like your problem isn't 
> with the UDP port, but rather the internal "ports" that Gnuradio uses to 
> connect blocks in a flowgraph. Looking at your traceback, your problem 
> starts on line 32, where you're trying to connect a usrp.sink_c to a 
> scopesink. I believe that sinks only have input ports and no output 
> ports, so there's nothing available for gnuradio to connect from the 
> usrp sink to the scopesink. The port error you're receiving is from the 
> _check_port function in basic_flow_graph, which is trying to connect 
> these two blocks.
> 
> To fix this, you need to send the output from "conv" to the sink and to 
> the scope. I'm not quite sure what exactly you'd use to accomplish this, 
> I imagine you need something with two output ports(?). Can someone else 
> provide a suggestion?
> 
> Ziad ElMarakshy wrote:
>> Ive been trying to run a code that reads a UDP connection and transmits
>> the
>> data using the USRP.
>> I got some error
>>
>> Traceback (most recent call last):
>>   File "./prefinal4.py", line 46, in ?
>>     app = stdgui.stdapp (my_rx_graph, "My RX")
>>   File "/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui.py",
>> line 36, in __init__
>>     wx.App.__init__ (self, redirect=False)
>>   File
>> "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py",
>> line 7700, in __init__
>>     self._BootstrapApp()
>>   File
>> "/usr/lib/python2.4/site-packages/wx-2.6-gtk2-unicode/wx/_core.py",
>> line 7352, in _BootstrapApp
>>     return _core_.PyApp__BootstrapApp(*args, **kwargs)
>>   File "/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui.py",
>> line 39, in OnInit
>>     frame = stdframe (self.flow_graph_maker, self.title, self._nstatus)
>>   File "/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui.py",
>> line 60, in __init__
>>     self.panel = stdpanel (self, self, flow_graph_maker)
>>   File "/usr/local/lib/python2.4/site-packages/gnuradio/wxgui/stdgui.py",
>> line 81, in __init__
>>     self.fg = flow_graph_maker (frame, self, vbox, sys.argv)
>>   File "./prefinal4.py", line 32, in __init__
>>     self.connect (dst,self.scope)
>>   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 125, in _connect_prim
>>     self._check_valid_src_port (src_endpoint)
>>   File
>> "/usr/local/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py",
>> line 222, in _check_valid_src_port
>>     self._check_port (src_endpoint.block.output_signature(),
>> src_endpoint.port)
>>   File
>> "/usr/local/lib/python2.4/site-packages/gnuradio/gr/basic_flow_graph.py",
>> line 233, in _check_port
>>     raise ValueError, 'port number out of range.'
>> ValueError: port number out of range.
>>
>>
>> i uploaded my code  http://www.nabble.com/file/p11395825/prefinal4.py
>> prefinal4.py 
>>   
> 
> 
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 

-- 
View this message in context: 
http://www.nabble.com/UDP-port-number-tf4012851.html#a11418386
Sent from the GnuRadio mailing list archive at Nabble.com.





reply via email to

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