ok! with conditional filename works like a charm! thank you very much! sorry that i did get for the first time ;-)
On Fri, Sep 28, 2012 at 1:47 AM, Marcus D. Leech <mle...@ripnet.com> wrote: >> 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 Leech > Principal Investigator > Shirleys Bay Radio Astronomy Consortium > http://www.sbrac.org > > > > > _______________________________________________ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio