|
From: | Nemanja Savic |
Subject: | Re: [Discuss-gnuradio] controlling flowgraph |
Date: | Fri, 11 Oct 2013 16:41:29 +0200 |
I still can't find solution so any suggestion would be good.Best,
Nemanja--On Thu, Oct 10, 2013 at 5:26 PM, Nemanja Savic <address@hidden> wrote:
Is this possible? In example above I don't see gui at all.when i press again the button another frame should be sent.when i press the button, then one frame should be sent.when flowgraph starts i don't want any transmiton, I just want to see gui.What i want to achieve is following:Ok, I have found button :), but the problem is now following. Part of my script looks like this:aaa is callback function called when the button is pressed.
def aaa(a):
global state
state = 1
state = 1
data = ""> if __name__ == '__main__':
parser = OptionParser(option_class=eng_option, usage="%prog: [options]")
(options, args) = parser.parse_args()
tb = top_block()
while(True):
if state == 1:
print "aa"
state = 0
data.append(0)
tb.blocks_vector_source_x_0.set_data(data)
tb.run()
print tb.blocks_vector_sink_x_0.data()
...--On Thu, Oct 10, 2013 at 12:40 PM, Nemanja Savic <address@hidden> wrote:
Many thanks,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 sort of state machine and a button, but as far as i can see there is no button in wx gui blocks. How do uo usually do this?
--
Nemanja Savić
Nemanja Savić
Nemanja Savić
[Prev in Thread] | Current Thread | [Next in Thread] |