On 27 Sep 2012 11:58, Anton Komarov wrote:
> Ok i see. > > And, if i want to run script from shell to record audio files and > rotate them every hour, how to make start/stop recording procedure in > this case? > > On Thu, Sep 27, 2012 at 7:31 PM, <mle...@ripnet.com> wrote: > >> On 27 Sep 2012 11:28, Anton Komarov 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, <mle...@ripnet.com [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 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 Discuss-gnuradio@gnu.org [2] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio [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 Discuss-gnuradio@gnu.org [4] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio [5] You can use the XMLRPC server that GRC provides to change any flow-graph variables you want from outside. Links: ------ [1] mailto:mle...@ripnet.com [2] mailto:Discuss-gnuradio@gnu.org [3] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio [4] mailto:Discuss-gnuradio@gnu.org [5] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio