|Subject:||Re: [Discuss-gnuradio] Re: Flowgraph slows down and hangs when using benchmark_tx with a custom block|
|Date:||Mon, 15 Nov 2010 20:54:43 -0800|
This is what I am doing in general_work
1. I read an item from the input stream.
2. Check if its 0x01 or 0x00.
3. If its 0x01 I output the contents of d_pn_array, d_n_pn times. (Basically I am spreading the input data by the ( pn_length * d_n_pn times ))
4. But if its 0x00 I output the contents of d_pn_array, d_n_pn times. (Basically I am spreading the input data by the ( pn_length * d_n_pn times ))
The arrays d_pn_array and d_pn_array were initialised in the constructor.
I only read the contents of the arrays and set the values to out[i]. This shouldn't take such a long time although I must say that the lengths of the arrays d_pn_array are 1023 and d_n_pn is 5 i.e. I output 1023*5 = 5115 items for each input item.
dsss_spreading_b::general_work(int noutput_items,gr_vector_int &ninput_items,gr_vector_const_void_star &input_items,gr_vector_void_star &output_items)
const unsigned char *in = (const unsigned char *)input_items;
unsigned char *out = (unsigned char *)output_items;
}On Mon, Nov 15, 2010 at 12:00 PM, Tom Rondeau <address@hidden> wrote:
You're really going to have to provide a lot more information aboutOn Mon, Nov 15, 2010 at 11:43 AM, John Andrews <address@hidden> wrote:
> On another note I use 'gr_block' to build this custom block
> On Mon, Nov 15, 2010 at 11:37 AM, John Andrews <address@hidden> wrote:
>> I have a modified dbpsk.py in which I use a custom block after the
>> self.diffenc (differential encoder block). This custom C++ block outputs
>> 1000 output_items of size 'gr_sizeof_char' for each input_item of size
>> 'gr_sizeof_char'. I then use benchmark_tx.py to test the functioning of the
>> modified dbpsk.py and upon doing so the flowgraph slows down incredibly.
>> What can I do to speed up the process?
>> DiffEnc --> Custom Block --> Chunks2Symbols
>> ( n ouputs) --> (n * 1000 outputs) --> (n *1000 outputs)
the block you've created. Posting the general_work function would be
|[Prev in Thread]||Current Thread||[Next in Thread]|