|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] filename in file source from GRC and automatic clear reports? |
Date: | Tue, 09 Jun 2015 09:13:19 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
Hi Jeon, the input fields just take "normal" python, so "/my/file/path"+ str(time) should just work; for more complex things, try python's (quite frankly awesome) string formatting language "/home/marcus/{dir}/{date}-{hour:02d}-{minute:02d}-{seconds:02.6f}.dat".format(dir="/samples", date=20150609,hour=8,minute=59,seconds=25.33212324) will give you /home/marcus//samples/20150609-08-59-25.332123.dat notice the length of each number and the padding with zero of the hour. Possibly, GRC tries to figure out whether what you've entered into the text field is just text (and must be surrounded by " ) or python code, and goes wrong. 2. There's no setting I'd know of that would enable that; the only way I can find in the source code is View->Clear Reports, which triggers the CLEAR_REPORT GRC Action; if you feel like it, you could add a "clear reports on flow graph launch" checkbox there and modify the Action that happens when you click on "run" to include conditional clearing of the reports. Greetings, Marcus On 06/09/2015 06:08 AM, Jeon wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |