# Creating custom source block using python-repeated output

**URL:** <https://www.ruby-forum.com/t/creating-custom-source-block-using-python-repeated-output/241427>\
**Category:** GNU Radio\
**Created:** [April 7, 2015, 3:29am UTC](https://www.ruby-forum.com/t/creating-custom-source-block-using-python-repeated-output/241427 "2015-04-07T03:29:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 7, 2015, 3:29am UTC](https://www.ruby-forum.com/t/creating-custom-source-block-using-python-repeated-output/241427/1 "2015-04-07T03:29:47Z")

</div>

I’m creating a source block using python. The block takes input from the  
user for the length of the vector. Some math is done inside the block  
and the vector is produced.

When I run it, the correct vector is being produced. But the same vector  
is being produced over and over again.

Is the “repeat” a default parameter? How can I change that? Is there  
something in my python code that I need to add?

Thanks  
AKY
