|
From: | Scott Johnston |
Subject: | Re: [Discuss-gnuradio] how to trigger dynamic reconfiguration with lock/disconnect |
Date: | Fri, 27 May 2011 11:52:03 -0400 |
User-agent: | Thunderbird 2.0.0.24 (X11/20100721) |
My typical program flow is application top block hier blockSo in the application level is where you want to test for a flag of some kind. This is the simplest way that I know of. You can certainly do it with threads, but that seems trickier.
Scott Johannes Schmitz wrote:
Hi Scott,This works well during testing. Once you get some kind of protocol or some series of steps that you want to do, you can just test a flag, and whenever your block finishes set it to true, then reconfigure.What do you mean with "your block finishes" ? How do you implement this flags? I am now using a thread to implement the state machine. I am using member variables in the C++ blocks to implement the flags or to hand over certain signals/values to the control thread. Johannes
-- Scott Johnston MIT Lincoln Laboratory 244 Wood Street, Lexington, MA 02420-9108 (781) 981-8196 address@hidden
[Prev in Thread] | Current Thread | [Next in Thread] |