discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Change value of a Variable defined in the flowgraph f


From: Cristian Rodríguez
Subject: [Discuss-gnuradio] Change value of a Variable defined in the flowgraph from a block
Date: Fri, 30 Jun 2017 23:39:09 -0500

Hi everyone.

I created a variable in the flowgraph called freq_Tx.

Imágenes integradas 2

This is assigned as the central freq of the block USRP source and is used by several blocks to do signal processing.

I need to listen two different frequencies in my application. For example one minute, 2.4 GHz and other minute 2.5GHz, depending of a specific logic. How can I, from a block, modify this variable? I mean, something like

set_freq_Tx(new value)

In this moment i'm doing it through a QT GUI RANGE,  but i need to set it automatically, then I think it must be a variable in the flowgraph, but I don't know if it can be modified from a block in the flowgraph.

Do you think is it possible?

If yes, may anyone please shares me a reference page or an example.

If not, my other option is to create the variable in my block, send it as an input to the blocks which use it, and to the USRP as a command. But it looks longer in time.

Thanks in advance.

Best regards,

Cristian

reply via email to

[Prev in Thread] Current Thread [Next in Thread]