# Restarting sub flow graph

**URL:** <https://www.ruby-forum.com/t/restarting-sub-flow-graph/241787>\
**Category:** GNU Radio\
**Created:** [April 30, 2015, 12:21pm UTC](https://www.ruby-forum.com/t/restarting-sub-flow-graph/241787 "2015-04-30T12:21:55Z")\
**Posts on this page:** 3\
**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 30, 2015, 12:21pm UTC](https://www.ruby-forum.com/t/restarting-sub-flow-graph/241787/1 "2015-04-30T12:21:55Z")

</div>

Hello again guys,

in my applicatoin I have two flow graphs, namely, rx and tx paths,  
separated.  
TX path generates pseudorandom bit sequence which is then turned into  
digital signal and transmitted over LFTX board. This signal is fed into  
signal generator in order to modulate FKS signal. Modulated signal is  
fed  
back to WBX board, and the idea is to measure BER.  
I want now to be able to restart TX and RX paths. If i Call lock() and  
unlock() will flowgraph be restarted?

Thanx

---

<div class="post-metadata">

**Author:** ![Nemanja\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7bcc69/32.png) [@Nemanja\_S](https://www.ruby-forum.com/u/Nemanja_S)\
**Post date:** [April 30, 2015, 12:33pm UTC](https://www.ruby-forum.com/t/restarting-sub-flow-graph/241787/2 "2015-04-30T12:33:01Z")

</div>

In fact I would like to explain a bit more.  
The flowgraph consists of rx and tx path:

WBX daughterboard -------\> RX path  
TX path --------\> LFTX daughterboard

I have random source inside tx path. I want to set a number of bits that  
will be produced, then run TX path and record received symbols in RX  
path.  
When I set a certain number of bits inside TX path, after the bits are  
generated, TX path doesn’t have anything to do and should stop. So my  
question is how to rerun it again.

Nemanja

---

<div class="post-metadata">

**Author:** ![Nemanja\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7bcc69/32.png) [@Nemanja\_S](https://www.ruby-forum.com/u/Nemanja_S)\
**Post date:** [April 30, 2015, 4:46pm UTC](https://www.ruby-forum.com/t/restarting-sub-flow-graph/241787/3 "2015-04-30T16:46:34Z")

</div>

It is always funny to answer my own questions. But the previous problem  
I  
addressed is easily solved with lock() and unlock() methods.
