Re: [Discuss-gnuradio] timed command

2013-03-04 Thread Gong Zhang
Thank you for your reply.And this may lead to ambiguous. The streaming data will totally work independent of the backpressure or it will be backpressure untill the command queue is full? 2013/3/5 1:26, Josh Blum wrote: On 03/04/2013 08:28 AM, Gong Zhang wrote: Your reply gave me much inspira

Re: [Discuss-gnuradio] timed command

2013-03-04 Thread Josh Blum
>> > Thank you for your valuable feedback.//If I wanna retune the device > every second,it really has nothing to do with data stream.Maybe I should > refer to python or UHD.Can you give me some example? > Here is an example in C++ for tuning two LOs at a given time, the same methods are also ava

Re: [Discuss-gnuradio] timed command

2013-03-04 Thread Josh Blum
On 03/04/2013 08:28 AM, Gong Zhang wrote: > Your reply gave me much inspiration.Given the "set_command_time" would > back-pressure all subsequent timed commands,would the data transmitting > be suspended? The streaming data will work independent of the backpressure when the command queue is full

Re: [Discuss-gnuradio] timed command

2013-03-04 Thread Gong Zhang
Your reply gave me much inspiration.Given the "set_command_time" would back-pressure all subsequent timed commands,would the data transmitting be suspended? 2013/3/4 Adeel Anwar : > Gong, > > Attached is a simple freq-hopping example using timed-commands. > U may need to change "freq_list " t

Re: [Discuss-gnuradio] timed command

2013-03-04 Thread Gong Zhang
2013/3/4 15:56, Josh Blum wrote: On 03/03/2013 09:28 PM, Gong Zhang wrote: Hi, I wanna transmit a 1khz Sinusoidal signal for one second and transmit 2khz for another second.The code maybe something like this: set_command_time(&mytime) sig_sin_source.work(...) set_command_time(&mytime+1) sig_si

Re: [Discuss-gnuradio] timed command

2013-03-03 Thread Josh Blum
On 03/03/2013 09:28 PM, Gong Zhang wrote: > Hi, > I wanna transmit a 1khz Sinusoidal signal for one second and transmit > 2khz for another second.The code maybe something like this: > set_command_time(&mytime) > sig_sin_source.work(...) > set_command_time(&mytime+1) > sig_sin_source.work(...) > B

[Discuss-gnuradio] timed command

2013-03-03 Thread Gong Zhang
Hi, I wanna transmit a 1khz Sinusoidal signal for one second and transmit 2khz for another second.The code maybe something like this: set_command_time(&mytime) sig_sin_source.work(...) set_command_time(&mytime+1) sig_sin_source.work(...) But as I know,the first set_command_time would back-pressure