summaryrefslogtreecommitdiff
path: root/gr-blocks/grc
diff options
context:
space:
mode:
authorBastian Bloessl <bastian.bloessl@uibk.ac.at>2013-05-31 10:57:06 +0200
committerJohnathan Corgan <johnathan@corganlabs.com>2013-10-28 08:42:25 -0700
commit7b874636db9e214cff863e081d59c3eaa37046fc (patch)
tree60c14444473ad140e48514896ec41b7b4ed05a6a /gr-blocks/grc
parent883ae8e3bbcaac6402fa07ac9e6c3d37d20fd973 (diff)
blocks: add append option to file sink
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r--gr-blocks/grc/blocks_file_sink.xml16
1 files changed, 15 insertions, 1 deletions
diff --git a/gr-blocks/grc/blocks_file_sink.xml b/gr-blocks/grc/blocks_file_sink.xml
index 75ef86a6b8..ece21fd2ae 100644
--- a/gr-blocks/grc/blocks_file_sink.xml
+++ b/gr-blocks/grc/blocks_file_sink.xml
@@ -8,7 +8,7 @@
<name>File Sink</name>
<key>blocks_file_sink</key>
<import>from gnuradio import blocks</import>
- <make>blocks.file_sink($type.size*$vlen, $file)
+ <make>blocks.file_sink($type.size*$vlen, $file, $append)
self.$(id).set_unbuffered($unbuffered)</make>
<callback>set_unbuffered($unbuffered)</callback>
<callback>open($file)</callback>
@@ -68,6 +68,20 @@ self.$(id).set_unbuffered($unbuffered)</make>
<key>True</key>
</option>
</param>
+ <param>
+ <name>Append file</name>
+ <key>append</key>
+ <value>False</value>
+ <type>bool</type>
+ <option>
+ <name>Append</name>
+ <key>True</key>
+ </option>
+ <option>
+ <name>Overwrite</name>
+ <key>False</key>
+ </option>
+ </param>
<check>$vlen &gt; 0</check>
<sink>