|
From: | Nowlan, Sean |
Subject: | Re: [Discuss-gnuradio] Flowgraph locking up with Stream Mux |
Date: | Thu, 9 Jul 2015 02:51:13 +0000 |
Null source just sets all outputs to zero, so it’s equivalent to a constant source with the scalar=0. … for(size_t n = 0; n < input_items.size(); n++) { optr = (void*)output_items[n]; memset(optr, 0, noutput_items * output_signature()->sizeof_stream_item(n)); } … I think this is some subtle issue with Stream Mux’s forecast function and how it interacts with the scheduler knowing when to advance read pointers from the upstream
block. This is just a wild guess, though. Also, I’ve seen an upstream block connect to two inputs of a Multiply block to create a squaring device, and that seems to work just fine. But in Stream Mux’s case, it’s only copying from one input at a time. Sean From: discuss-gnuradio-bounces+address@hidden [mailto:discuss-gnuradio-bounces+address@hidden
On Behalf Of Jeon whileni didnt look into null source block code, but the basic behavior of null source block is, it outputs nothing. So stream mux waits until input blocks pass a given number of samples and it takes forever Regards 2015. 7. 9. 오전 11:27에 "Nowlan, Sean" <address@hidden>님이
작성:
|
[Prev in Thread] | Current Thread | [Next in Thread] |