Re: [Discuss-gnuradio] forecast and general work function

2015-10-29 Thread Marcus Müller
As mentioned, the stream-to-message-passing gr-eventstream approach is right for you. Best regards, Marcus On 10/29/2015 01:47 PM, s.subrata...@gmail.com wrote: > Thank you Marcus. I am trying to simulate a network with 2 transmitters and > one receiver. The TX's transmit streams at random times

Re: [Discuss-gnuradio] forecast and general work function

2015-10-29 Thread s . subrata105
Thank you Marcus. I am trying to simulate a network with 2 transmitters and one receiver. The TX's transmit streams at random times and the RX receives the sum of the signals from both the TX's. The adder block however doesn't give any output when one of its input stream is empty (i.e. when both

Re: [Discuss-gnuradio] forecast and general work function

2015-10-28 Thread Marcus Müller
Hi Subrata, while what you plan to do is possible if you build a block with a general_work method and a forecast. In fact, here the forecast implementation will probably be pretty crucial, but also be pretty simple -- just always require the same amount of samples from input0 as you're asked to pr

[Discuss-gnuradio] forecast and general work function

2015-10-28 Thread s . subrata105
I am trying to create a block that has two input and one output. Its like a priority multiplexer; if input0 is empty then output = input1 else output = input0 ( input0 always has samples) its a stream based block. How do I declare the work function, because the number of samples needed from eac