Re: One Tagged Input Stream to Unequal Output Streams

2023-05-31 Thread Nicolas Buhr
Hi Alon,I‘m not sure about a Block with two stream outputs because I have no experience with that, but I can suggest a workaround that should definitely work:-Make a block with two message outputs and package the samples from the stream into messages you send via these message outputs.-Make a block that has a message input and a stream output, which turns inputs from a message back into a stream. (If a message comes in, store it to a buffer. In the work procedure, check whether there is something in the buffer to send or otherwise just return 0.)-Make a hier block, in which you connect two instances of the second block to the outputs of the first block.I know, it’s not perfect, but at least it should work.Mit besten Grüßen,Nicolas BuhrAm 30.05.2023 um 22:30 schrieb Alon Simon Levin :Hi all,I have a tagged stream block that takes in a fixed number of samples and outputs a subset onto a single stream. I want to extend this functionality to output two subsets of the input stream to two separate outputs, with an unequal number on each one.For example, for an input stream of 5000 samples, I am currently routing samples 1000-1999 to the output. I would like to extend this so that I send samples 1000-1099 to Output 1 and samples 1100-1999 to Output 2.Is there an easy way to do this? I've looked through the blocks coding guide but am very confused about how noutput_items works in this scenario. I would appreciate any help on this matter!Best,    Alon-- Alon S. LevinPh.D. StudentWireless & Mobile Networking Lab, Columbia Universityalon.s.le...@columbia.edu | (347) 225-7433


Clearing a Blocks Buffers

2023-05-31 Thread Luke Berndt
Is there a good method for clearing or resetting a block’s buffers? 

I have a program that tunes to different frequencies and is also started & 
paused. I want to clear out any of the existing samples in the buffers between 
blocks to make sure I am getting the current signal in and not something that 
was left over. 

I have tried the following approach but it sometimes leads to segfaults with 
some blocks.  Can this be done? Is there a better way to do this or achieve the 
same results?

  gr::block_detail_sptr detail;
  gr::block_sptr grblock = cast_to_block_sptr(block);
  detail = grblock->detail();
  detail->reset_nitem_counters();

Re: Clearing a Blocks Buffers

2023-05-31 Thread Jeff Long
No, there is not currently a way of flushing all or part of a flowgraph.

On Wed, May 31, 2023 at 9:58 AM Luke Berndt  wrote:

> Is there a good method for clearing or resetting a block’s buffers?
>
> I have a program that tunes to different frequencies and is also started &
> paused. I want to clear out any of the existing samples in the buffers
> between blocks to make sure I am getting the current signal in and not
> something that was left over.
>
> I have tried the following approach but it sometimes leads to segfaults
> with some blocks.  Can this be done? Is there a better way to do this or
> achieve the same results?
>
> gr::block_detail_sptr detail;
> gr::block_sptr grblock = cast_to_block_sptr(block);
> detail = grblock->detail();
> detail->reset_nitem_counters();
>


imu out of bounds error using Symbol Sync block

2023-05-31 Thread Grace Yeung

Hi, I am using the Symbol Sync block and have run into the following error:

thread_body_wrapper :error: ERROR thread[thread-per-block[104]: symbol_sync_cc(40)>

]: mmse_fir_interpolator_cc: imu out of bounds.

It seems the internally generated value for mu is somehow out of bounds 
of [0,1.0)? Anyone has run into this problem or any advice? Thanks.


Grace

--
Grace K. Yeung, MS
NorthWest Research Associates
301 Webster Street
Monterey, CA 93940
gr...@nwra.com
https://www.nwra.com


smime.p7s
Description: S/MIME Cryptographic Signature


Discussion regarding latency

2023-05-31 Thread Jiya Johnson
 Good morning,
  I would like to know *how to calculate the latency if we are sending
a signal or a data packet from source to receiver in GNU Radio*.

Thanks in Advance.