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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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()],
and made a second variable_2 to close the file, but it doesn't seems to
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!
This topic is locked and can not be replied to.