In Audacity i see only gray background and no signal.
Actually i have started with nbfm reciever and tried to save audio in
wav file. That i tried to redirect it to audio sink and audio was ok.
Than i tried to use very simple scheme with audio source to wav sink
and realize that wav file is broken.
I do not think it is good when soxi not shoing time length for the
file - that means file is broken.
On Thu, Sep 27, 2012 at 06:55:08PM +0400, Anton K. wrote:
file - that means file is broken.
Are you making sure the flow graph is terminated correctly? If you
simply kill the flow graph, the WAV block has no chance to write a
correct file header. This happens in the block destructor, or when you
call close().
If you can’t do that, you must use gr_file_sink.
MB
-rw-rw-r-- 1 anton anton 24M сент. 27 00:46 freq2.wav
Precision : 8-bit
signal source for further tests.
Kaiserstraße 12
I recall running into this issue myself now, with multimode and
simple_fm_rcv.
What I do in those two apps is that when I turn “off”
recording, I change the wavfile filename to /dev/null, which causes a
formal cleanup-and-close of the previous file.
On 27 Sep 2012 11:13,
Anton K. wrote:
Martin,
actually no, i am not sure.
i am
just pushing stop button in gnuradio companion.
from grc
perspective view, what method is supposed to be used for
graceful
script termination?
I recall
running into this issue myself now, with multimode and simple_fm_rcv.
What I do in those two apps is that when I turn “off” recording, I
change the wavfile filename to /dev/null, which causes a formal
cleanup-and-close of the previous file. On 27 Sep 2012 11:13, Anton
Komarov wrote: Martin, actually no, i am not sure. i am just pushing
stop button in gnuradio companion. from grc perspective view, what
method is supposed to be used for graceful script termination? O
_______________________________________________ Discuss-gnuradio mailing
list removed_email_address@domain.invalid [1] Discuss-gnuradio Info Page [2]
Use a
conditional expression in the “filename” field of the wavefile sink, and
then have a “checkbox” control to control recording. Make the expression
conditional on the state of the checkbox, and if “recording” isn’t
checked, make the file /dev/null, otherwise make it the file you want.
Ok, tried with selector and check box.
I started script, check box appeared, i cheched it and recording to
wav file started.
Wait a bit and unchecked it, got file 2.7 Mbytes, not growing more,
then stopped the script.
FIle is corrupted.
On 27 Sep 2012 11:28, Anton K. wrote: So it can programmed with
GRC, or i supposed to make some stuff in python script? On Thu, Sep 27,
2012 at 7:17 PM, <removed_email_address@domain.invalid [1]> wrote: I recall running into
this issue myself now, with multimode and simple_fm_rcv. What I do in
those two apps is that when I turn “off” recording, I change the wavfile
filename to /dev/null, which causes a formal cleanup-and-close of the
previous file. On 27 Sep 2012 11:13, Anton K. wrote: Martin,
actually no, i am not sure. i am just pushing stop button in gnuradio
companion. from grc perspective view, what method is supposed to be used
for graceful script termination? O
_______________________________________________ Discuss-gnuradio mailing
list removed_email_address@domain.invalid [2] Discuss-gnuradio Info Page [3] Use a
conditional expression in the “filename” field of the wavefile sink, and
then have a “checkbox” control to control recording. Make the expression
conditional on the state of the checkbox, and if “recording” isn’t
checked, make the file /dev/null, otherwise make it the file you want.
_______________________________________________ Discuss-gnuradio mailing
list removed_email_address@domain.invalid [4] Discuss-gnuradio Info Page [5]
You can use
the XMLRPC server that GRC provides to change any flow-graph variables
you want from outside.
Ok, tried with selector and check box.
I started script, check box appeared, i cheched it and recording to
wav file started.
Wait a bit and unchecked it, got file 2.7 Mbytes, not growing more,
then stopped the script.
FIle is corrupted.
Looked at your flow-graph.
You have to make the filename on the WAV sink change depending on
recording/not-recording.
Just use a conditional expression as the filename parameter in the
filename sink
“myfile” if recording_on else “/dev/null”
–
Marcus L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
Hi, I know its an old thread but supper grateful for finding this and just wanted to add comments from my windows environment not sure why, but had a bit of a mare getting to it work especially around string vs. quotes vs nul value, etc.
I created a ‘QT GUI Checkbox’ called recording_on. I set the type to string. I set the default and false values to “C:\xxxx\rubbish.wav” (without the quotes and with a proper folder structure and the true value to “C:\xxxx\rf_file.wav” (without the quotes and with a proper folder". Then just set the filename property in the “Wav File Sync” to “recording_on” (without the quotes)…
I recall running into this subject myself, with multimode and simple_fm_rcv. What I do in those two apps is that when I turn “off” recording, I changed the wav-file filename to /dev/null, which causes a formal cleanup-and-close of the previous file.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.