Controlling flowgraph

Hi all guys,

I wanted to implement a ask transmitter and a button for triggering
transmition of a single frame of data. My idea was to do that with a
of state machine and a button, but as far as i can see there is no
in wx gui blocks. How do uo usually do this?

Many thanks,

I still can’t find solution so any suggestion would be good.


Ok, I have found button :), but the problem is now following. Part of my
script looks like this:

def aaa(a):
global state
state = 1

state = 1
data = [0]
if name == ‘main’:
parser = OptionParser(option_class=eng_option, usage="%prog:
(options, args) = parser.parse_args()
tb = top_block()
if state == 1:
print “aa”
state = 0

aaa is callback function called when the button is pressed.
What i want to achieve is following:
when flowgraph starts i don’t want any transmiton, I just want to see
when i press the button, then one frame should be sent.
when i press again the button another frame should be sent.

Is this possible? In example above I don’t see gui at all.

When want to use method Start, that is defined for top_block_gui class,
always get this error:

AttributeError: ‘gr_top_block_sptr’ object has no attribute ‘Start’
[[email protected] GRC]$ gvim

But it is clear that tb is of top_block_gui, and there is no error for
using Run method.
Why is this so?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs