discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Switching in real-time from USRP Source to USRP S


From: Martin Braun
Subject: Re: [Discuss-gnuradio] Switching in real-time from USRP Source to USRP Sink
Date: Sat, 18 Jan 2014 16:41:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

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





reply via email to

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