Forum: GNU Radio how to set up a variable after tb.Run()

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
feldmaus (Guest)
on 2009-05-30 12:45
(Received via mailing list)
Hi All,

it would be nice to have a possibility in grc to set up a variable which
comes to the end.

Further on i have some wishes to grc:
+it would be nice to send strings to a filesink for example with pickle.
+to set up the sequence of the variables

Also, there is a bug:
i made a variable_0:
self.variable_0 = variable_0 = file('../../../peakdaten.dat','a')
self.variable_1 = variable_1 = cPickle.dump([[time.time()],
[samp_rate],
['../../../peakdetektor1.hex',
'../../../peakdetektor2.hex',
'../../../peakdetektor3.hex'],
['../../../peakband1.hex',
'../../../peakband2.hex',
'../../../peakband3.hex']],variable_0)
and made a second variable_2 to close the file, but it doesn't seems to
work:
self.variable_2 = variable_2 = variable_0.close()

I still want to add some infos after my program has finished.

Any ideas ?

regards Markus
Josh B. (Guest)
on 2009-05-30 21:00
(Received via mailing list)
I think that you need to make a custom block wrapper to encapsulate
whatever your are trying to do into a block. You can put all kinds of
arbitrary code into the <make> tag. Have fun!

http://gnuradio.org/trac/wiki/GNURadioCompanion#Ad...
This topic is locked and can not be replied to.