Re: [Discuss-gnuradio] How to write data periodically in file sink

2017-05-25 Thread Paul I.
Take a look at "Tagged file sink" block. 2017-05-25 4:35 GMT+03:00 Deepak Gautam : > > On Thu, May 25, 2017 at 10:34 AM Deepak Gautam wrote: > >> Dear Gilad, paul,luca >> >> >> Thank you for the kind response. Yes, i need the high accuracy and i >> think i should go with "issue_stream_cmd" met

Re: [Discuss-gnuradio] How to write data periodically in file sink

2017-05-24 Thread Deepak Gautam
On Thu, May 25, 2017 at 10:34 AM Deepak Gautam wrote: > Dear Gilad, paul,luca > > > Thank you for the kind response. Yes, i need the high accuracy and i think > i should go with "issue_stream_cmd" method. Before i start working in this > method, my concern is whether i can write the different bu

Re: [Discuss-gnuradio] How to write data periodically in file sink

2017-05-24 Thread Deepak Gautam
Dear paul,luca, Thank you for the kind response. Yes, i need the high accuracy and i think i should go with "issue_stream_cmd" method. Before i start working in this method, my concern is whether i can write the different burst in separate file. My main conern is written file size. Because i have

Re: [Discuss-gnuradio] How to write data periodically in file sink

2017-05-21 Thread Paul I.
If you don't need high accuracy just "filter" received samples by rx_time or use "Keep M in N" block where N = (samp_rate * 3 sec) and M = (samp_rate * 1 sec). 2017-05-21 12:24 GMT+03:00 Paul I. : > You need to use USRP "issue_stream_cmd" method (mode: > STREAM_MODE_NUM_SAMPS_AND_DONE). It's allo

Re: [Discuss-gnuradio] How to write data periodically in file sink

2017-05-21 Thread Paul I.
You need to use USRP "issue_stream_cmd" method (mode: STREAM_MODE_NUM_SAMPS_AND_DONE). It's allow to receive burst of data by USRP timer. If you work in GRC: 1) Disable streaming autostart for "UHD source" 2) Create your own block which will periodically issue stream commands (yes, you need to pass

Re: [Discuss-gnuradio] How to write data periodically in file sink

2017-05-20 Thread Gilad Beeri (ApolloShield)
If you need accuracy, I think the asynchronous nature of your method might problematic (will appreciate input from GR devs). Maybe try a different approach - write the samples to a memory buffer, then read from the buffer the exact # of samples you want to write to a file. On Fri, May 19, 2017 at

Re: [Discuss-gnuradio] How to write data periodically in file sink

2017-05-19 Thread Deepak Gautam
Dear luca, I had already tried with controlling flow graph dynamically using start(), stop(), lock(), unlock() function. Here i have the part of code i had used. tb=top_block_cls() count=1 tb.start() while (count<5): time.sleep(1.0) #data is recorded in the file tb.lock() tb

Re: [Discuss-gnuradio] How to write data periodically in file sink

2017-05-15 Thread Moritz Luca Schmid
Hey Deepak, my first idea is to reconfigure the flowgraph. You could connect and disconnect your source for the time, you want to write data in your file sink and the time you don't want to. You can find infos about the flowgraphs operations here

[Discuss-gnuradio] How to write data periodically in file sink

2017-05-15 Thread Deepak Gautam
Currently i am working in the USRP using GNU Radio for my masters work. In my transmitter side, i send data continuously from file source followed by UHD Sink at the rate of 25 MSPS. In receiver side, I want to write the data in every two/three seconds after receiving from receiver USRP. Meaning, w