Re: [Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-31 Thread Activecat
On Sat, May 31, 2014 at 5:37 PM, Marcus Müller wrote: > Problem being is that as soon as the head block signals "done", the > flowgraph might come to a halt, effectively breaking the skip head > subgraph; > Thanks for highlighting this. Now I recall that the Head block return -1 when it is done

Re: [Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-31 Thread Marcus Müller
Problem being is that as soon as the head block signals "done", the flowgraph might come to a halt, effectively breaking the skip head subgraph; how many samples are still produced after head is done depends on timing and buffer size... I think that's why Mike recommended the "M in N", so you only

Re: [Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-30 Thread Activecat
On Fri, May 30, 2014 at 10:20 PM, Mike Jameson wrote: > FYI, the head block "copies the first N items to the output then signals > done": > http://gnuradio.org/doc/doxygen/classgr_1_1blocks_1_1head.html > > Instead of using the "Head" block, the "Keep M in N" block should do the > trick. > You k

Re: [Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-30 Thread Mike Jameson
FYI, the head block "copies the first N items to the output then signals done": http://gnuradio.org/doc/doxygen/classgr_1_1blocks_1_1head.html Instead of using the "Head" block, the "Keep M in N" block should do the trick. Mike -- Mike Jameson M0MIK BSc MIET Ettus Research Technical Support Ema

Re: [Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-30 Thread Activecat
On Fri, May 30, 2014 at 4:57 PM, dushyant.marathe wrote: > Hi Activecat, > > I used both "Head" and "Skip Head" blocks in parallel to separate out > multiplexed input stream. > The Head block correctly gives me first 240k elements but, "Skip Head" > block doesn't give me any elements after skipp

Re: [Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-30 Thread dushyant.marathe
Hi Activecat, I used both "Head" and "Skip Head" blocks in parallel to separate out multiplexed input stream. The Head block correctly gives me first 240k elements but, "Skip Head" block doesn't give me any elements after skipping 240k elements. For your reference I have attached image of my flow

Re: [Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-29 Thread Activecat
On Thu, May 29, 2014 at 2:59 PM, dushyant.marathe wrote: > Hi Activecat, > > Thanks for the reply. > > As suggested by you, I used "Stream Mux" and it worked for me. > > Now I want to de-multiplex the output of "Stream Mux" so as to get back > both > the inputs separately. > Use both "Head" an

Re: [Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-29 Thread dushyant.marathe
Hi Activecat, Thanks for the reply. As suggested by you, I used "Stream Mux" and it worked for me. Now I want to de-multiplex the output of "Stream Mux" so as to get back both the inputs separately. If you have any suggestions, please let me know. Thanks and Regards, Dushyant -- View this

Re: [Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-28 Thread Activecat
On Tue, May 27, 2014 at 3:07 PM, dushyant.marathe wrote: > My GRC flow graph design is as follows: > > Two different signal sources => selector (with 2 input & 1 output) => scope > > Now I want to change input index of 'Selector' block automatically so that > for fixed time 1st input is selected

[Discuss-gnuradio] Dynamically changing input index of Selector block.

2014-05-27 Thread dushyant.marathe
Hi all, In my flow graph I am using two different inputs. At particular time, only one input is selected. For this I am using 'Selector' block with two inputs and only one output. I want to change 'input index' of 'Selector' block when flow graph is running. I used 'WX GUI Slider' block, it works

Re: [Discuss-gnuradio] dynamically changing input index of selector block

2011-11-09 Thread Josh Blum
On 11/09/2011 06:26 PM, Janek wrote: > I'm trying to dynamically/automatically change the input index of the > selector block based on the output of a square wave. Normally one would > use a variable block, but I need it to automatically change without a > user's input. How can I connect the ou

[Discuss-gnuradio] dynamically changing input index of selector block

2011-11-09 Thread Janek
I'm trying to dynamically/automatically change the input index of the selector block based on the output of a square wave. Normally one would use a variable block, but I need it to automatically change without a user's input. How can I connect the output of the square wave block to the input