On 01/17/2014 10:07 PM, Naceur wrote:
> Did anyone tried once to code a kind of event-driven switch which applies on
> the USRP blocks.
> Let's say I need to switch the sink and the source in real time (and by the
> way the linked blocks two will be switched) giving a certain event trigger. 
> 
> Do I need to code two different GR flow graphs and switch between them
> whenever I got the trigger event in other words I need to implement a state
> machine ?

Hi Naceur,

maybe not, depending on your app. There's no way to turn any source into
a sink, but you can have both in a single flowgraph. Also, you don't
*have* to stream into a sink. So perhaps this'll work: Add both a sink
and source to the flow graph, and only produce tx samples when your app
needs to. Your only problem now is that you will rx artifacts from your
own signal from the UHD source. You could switch the source off, but it
might be easier to add some code that simply ignores any rx signals
while you're tx'ing.

MB



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

Reply via email to