Re: [Discuss-gnuradio] Custom Blocks and Number of Items Per Port

2012-08-06 Thread Alexander Olihovik
buffered automatically or dropped? On Fri, Aug 3, 2012 at 6:10 PM, Josh Blum wrote: > > > On 08/03/2012 02:16 PM, Alexander Olihovik wrote: > > Ideally, I'd like to have 1 items on each port every time work() is > > called, since my sink will be sending 10k sn

Re: [Discuss-gnuradio] Custom Blocks and Number of Items Per Port

2012-08-03 Thread Alexander Olihovik
t 02:23:39PM -0400, Alexander Olihovik wrote: > > It seems as if the gr_sync_block is close to what Josh Blum refers to as > an > > Arbitrary Ratio Block in his Blocks Coding Guide. > > Read the guide again :) > that's not at all what it is. > > This might also help:

Re: [Discuss-gnuradio] Custom Blocks and Number of Items Per Port

2012-08-03 Thread Alexander Olihovik
] on each port every time the work() function is called? Is it this simple? On Fri, Aug 3, 2012 at 1:56 PM, Martin Braun (CEL) wrote: > On Fri, Aug 03, 2012 at 01:38:38PM -0400, Alexander Olihovik wrote: > > There are a few cases when input_items[0] doesn't equal input_items[1]. >

Re: [Discuss-gnuradio] Custom Blocks and Number of Items Per Port

2012-08-03 Thread Alexander Olihovik
d the next time the work function is called? On Wed, Aug 1, 2012 at 8:40 PM, Tom Rondeau wrote: > On Wed, Aug 1, 2012 at 3:46 PM, Alexander Olihovik > wrote: > > Hi all! > > I'm writing a custom sink block in Python with multiple input ports of > all > > the same da

[Discuss-gnuradio] Custom Blocks and Number of Items Per Port

2012-08-01 Thread Alexander Olihovik
Hi all! I'm writing a custom sink block in Python with multiple input ports of all the same data type. I've been reading Josh's block coding guide, but I'm confused at one point: The value returned by a block should be the number of items produced by that block. Is this to say that if I have multip

Re: [Discuss-gnuradio] MTU Size

2012-07-24 Thread Alexander Olihovik
Josh was correct; it was the network. Specifically, the network switch wasn't configured to save its settings after a reboot... Thank you both for the help! -Alex On Mon, Jul 23, 2012 at 1:11 PM, wrote: > ** > > On 23 Jul 2012 13:05, Josh Blum wrote: > > On 07/23/2012

Re: [Discuss-gnuradio] MTU Size

2012-07-23 Thread Alexander Olihovik
to handle frames of size 4096, and have had this working with C++ code. However, the Python code doesn't work as I would expect. It seems not to make a difference whether I specify the frame size or not. On Mon, Jul 23, 2012 at 11:56 AM, Alexander Olihovik wrote: > Hi all, > I'

[Discuss-gnuradio] MTU Size

2012-07-23 Thread Alexander Olihovik
Hi all, I'm currently getting overflow errors that I believe could be remedied by increasing the MTU size. Is there a way to change the recv_frame_size and send_frame_size in Python? I've read the Transport Application Notes and some old emails to this list, but I still can't figure out how to pas

Re: [Discuss-gnuradio] High-Level Stream Questions

2012-07-16 Thread Alexander Olihovik
Is there a way to control the start time of the stream when it is not coming from a USRP? On Mon, Jul 16, 2012 at 2:25 PM, Josh Blum wrote: > > > On 07/16/2012 10:17 AM, Alexander Olihovik wrote: > > Hello all, > > I have general questions on streams: > > > >

[Discuss-gnuradio] High-Level Stream Questions

2012-07-16 Thread Alexander Olihovik
Hello all, I have general questions on streams: 1. When precisely does a stream start? When a source is connected to its sink? When you call .run() on a top-block? 2. When adding stream tags to a stream, does the stream itself get altered? If I were to output the stream to a binary file, would th

Re: [Discuss-gnuradio] Using the UHD API for Python Programming

2012-06-22 Thread Alexander Olihovik
: > > > On 06/22/2012 10:18 AM, Alexander Olihovik wrote: > > For get_time_now(), would I need to swig multi_usrp.hpp? > > Everything you see in these headers should be available in python: > http://gnuradio.org/cgit/gnuradio.git/tree/gr-uhd/include > > -josh > > &g

Re: [Discuss-gnuradio] Using the UHD API for Python Programming

2012-06-22 Thread Alexander Olihovik
For get_time_now(), would I need to swig multi_usrp.hpp? On Fri, Jun 22, 2012 at 12:19 PM, Josh Blum wrote: > > > On 06/22/2012 07:33 AM, Alexander Olihovik wrote: > > Hi all, > > I'm having some trouble using the C++ UHD API for writing Python code. > > I u

[Discuss-gnuradio] Using the UHD API for Python Programming

2012-06-22 Thread Alexander Olihovik
Hi all, I'm having some trouble using the C++ UHD API for writing Python code. I understand that the code has been SWIG'd from C++ to Python. Specifically, the C++ code I want to convert to Python is: --- uhd::stream_cmd_t stream_cmd(uhd::stream_cmd_t::STREAM_M