Re: [Discuss-gnuradio] Changing the USRP transmitter gain after a timeout

2017-02-24 Thread Qurat-Ul-Ann Akbar
I have looked at that file and you have made gain, frequency, and LO offset variables and then you send messages every 2 secs. When I run the file, I try to change the frequency from 2.4 to 2.5 G using the glider in the GUI. It should change the value of the variable which should be reflected in

Re: [Discuss-gnuradio] Changing the USRP transmitter gain after a timeout

2017-02-24 Thread Derek Kozel
Hello, For every message which you send UHD would change the gain once. So in order to alternate every 100ms you would send 10 messages a second, advancing the timestamp value by 100ms each time. The example I linked to shows the frequency and gain being changed every two seconds. You'll just

Re: [Discuss-gnuradio] Changing the USRP transmitter gain after a timeout

2017-02-24 Thread Qurat-Ul-Ann Akbar
Also I want to keep doing this in a loop (the values keep alternating after an interval). Will it be possible through the command port interface ? On Fri, Feb 24, 2017 at 9:17 AM, Qurat-Ul-Ann Akbar < quratulannakbar2...@u.northwestern.edu> wrote: > Hi Derek, > > Thank you for your email. If

Re: [Discuss-gnuradio] Changing the USRP transmitter gain after a timeout

2017-02-24 Thread Qurat-Ul-Ann Akbar
Hi Derek, Thank you for your email. If you could find that file it would be really helpful. What I want to do is to alternate between two or more values of gain after specific intervals. Can I alternate like this using the command port interface? How will the block USRP sink block know which

Re: [Discuss-gnuradio] Changing the USRP transmitter gain after a timeout

2017-02-23 Thread Derek Kozel
Hello, The command port interface can be used to change the gain value. There is an example of creating messages for tuning included in gr-uhd. https://github.com/gnuradio/gnuradio/blob/master/gr-uhd/examples/grc/uhd_msg_tune.grc I've used a function probe to generate coarsely timed "tick"

[Discuss-gnuradio] Changing the USRP transmitter gain after a timeout

2017-02-23 Thread Qurat-Ul-Ann Akbar
Hi, I want to alternate the gain of the USRP between two values after a certain period of time. For example after 100 ms it should go from A to B and after another 100 ms the value should go from B to A and so on. Is there an easy way of doing this in the GNU Radio companion or would I need to