Re: [Discuss-gnuradio] Automating Transmit Gain

2017-07-03 Thread Nicolas Cuervo
Hello Tellrell,

the description that you are making as a possible solution to your problem
sounds very reasonable in many ways. As an informative example for the
command messages. you can check the "uhd_msg_tune.grc" example in
gnuradio/gr-uhd [1] where the uhd control over message is shown.

A second block that will only issue the messages based on a tagged input
might be superfluous, as you can also add a message port in the original
block that passes messages asynchronously containing the command to the uhd
sink. However, without knowing deeply what the overall purpose of your
application is, all solutions seem reasonable. Maybe you find the second
block that you have in mind (the one that generates the command for uhd
based on a tagged stream) useful in other applications, so its development
might not hurt.

Regards,
- Nicolas





[1] https://github.com/gnuradio/gnuradio/tree/maint/gr-uhd/examples/grc

On Mon, Jun 26, 2017 at 7:48 PM, Tellrell White  wrote:

> Hello Guys
> I want to have the uhd sink block in my flow graph automatically cycle
> through a number of transmit gain values. I'm thinking of developing two
> blocks, one which will take in  a certain number of items and once it
> reaches a certain value a message will be sent to another block which will
> send a command to the uhd sink block to adjust the gain by a certain
> amount. I'm wondering if I could accomplish this task by just creating a
> single block similar to the "tagged stream to pdu" which takes in a stream
> of data and outputs a message. Any feedback would be greatly appreciated.
>
> Thanks
> Tellrell
>
>
> ___
> 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


[Discuss-gnuradio] Automating Transmit Gain

2017-06-26 Thread Tellrell White
Hello GuysI want to have the uhd sink block in my flow graph automatically 
cycle through a number of transmit gain values. I'm thinking of developing two 
blocks, one which will take inĀ  a certain number of items and once it reaches a 
certain value a message will be sent to another block which will send a command 
to the uhd sink block to adjust the gain by a certain amount. I'm wondering if 
I could accomplish this task by just creating a single block similar to the 
"tagged stream to pdu" which takes in a stream of data and outputs a message. 
Any feedback would be greatly appreciated.
ThanksTellrell 

___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio