Send USRP-users mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of USRP-users digest..."


Today's Topics:

   1. SBX phase alignment in GNU Radio with timed commands
      (Schild Jonas)
   2. Re: SBX phase alignment in GNU Radio with timed   commands
      (Marcus D. Leech)
   3. Re: SBX phase alignment in GNU Radio with timed   commands
      (Marcus M?ller)
   4. saving signal in a file in GNU (Haris Tanveer)
   5. Re: saving signal in a file in GNU (Marcus M?ller)


----------------------------------------------------------------------

Message: 1
Date: Mon, 30 May 2016 18:21:55 +0200
From: Schild Jonas <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [USRP-users] SBX phase alignment in GNU Radio with timed
        commands
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="us-ascii"

Hi all

I have a question that was probably already answered, but I searched the 
mailling list and knowledge base up and down and only found pieces to the 
answer of my question.

Here's my setup (UHD 3.9.3 and GNU Radio 3.7.9.2):
I have two USRP X310 with SBX daughter boards. Both are connected to the 
OctoClockG for PPS and 10MHz references. I use a single USRP source block in 
GNU Radio, which I configured to include the 2 X310s, so I get 4 Rx channels. 
All 4 channels start sampling at the same time (PPS is sync is working), but 
the phases between the channels are not aligned (input signal is a sine from a 
signal generator).
I read that the LOs on the SBX have the feature to be set to a known phase 
after tuning. But one needs to use timed commands for that. My question is: can 
I accomplish auto phase alignment with GNU Radio or is there a way to use timed 
commands from within GNU Radio? I know that I could implement a phase 
adjustment by software with a calibration "tone". But I'd rather use the LO 
feature of the SBX boards before I invest time in learning how to write my own 
OOT modules for GNU Radio to do that.

I'm sorry if this topic has been covered/discussed and answered before. I only 
found solutions that covered development with the UHD API directly, without GNU 
Radio.

Thank you very much in advance!

Best regards,
Jonas


------------------------------

Message: 2
Date: Mon, 30 May 2016 12:28:47 -0400
From: "Marcus D. Leech" <[email protected]>
To: [email protected]
Subject: Re: [USRP-users] SBX phase alignment in GNU Radio with timed
        commands
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252; format=flowed

On 05/30/2016 12:21 PM, Schild Jonas via USRP-users wrote:
> Hi all
>
> I have a question that was probably already answered, but I searched the 
> mailling list and knowledge base up and down and only found pieces to the 
> answer of my question.
>
> Here's my setup (UHD 3.9.3 and GNU Radio 3.7.9.2):
> I have two USRP X310 with SBX daughter boards. Both are connected to the 
> OctoClockG for PPS and 10MHz references. I use a single USRP source block in 
> GNU Radio, which I configured to include the 2 X310s, so I get 4 Rx channels. 
> All 4 channels start sampling at the same time (PPS is sync is working), but 
> the phases between the channels are not aligned (input signal is a sine from 
> a signal generator).
> I read that the LOs on the SBX have the feature to be set to a known phase 
> after tuning. But one needs to use timed commands for that. My question is: 
> can I accomplish auto phase alignment with GNU Radio or is there a way to use 
> timed commands from within GNU Radio? I know that I could implement a phase 
> adjustment by software with a calibration "tone". But I'd rather use the LO 
> feature of the SBX boards before I invest time in learning how to write my 
> own OOT modules for GNU Radio to do that.
>
> I'm sorry if this topic has been covered/discussed and answered before. I 
> only found solutions that covered development with the UHD API directly, 
> without GNU Radio.
>
> Thank you very much in advance!
>
> Best regards,
> Jonas
> _______________________________________________
> USRP-users mailing list
> [email protected]
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com
If by "Gnu Radio" you mean GRC, then there's no direct way to implement 
timed commands from GRC.

HOWEVER, you can edit the generated Python code, and wrap 
set_command_time() / clear_command_time() around your tuning calls.





------------------------------

Message: 3
Date: Mon, 30 May 2016 18:33:55 +0200
From: Marcus M?ller <[email protected]>
To: [email protected]
Subject: Re: [USRP-users] SBX phase alignment in GNU Radio with timed
        commands
Message-ID: <[email protected]>
Content-Type: text/plain; charset="windows-1252"

Hi Jonas,
> I read that the LOs on the SBX have the feature to be set to a known phase 
> after tuning. But one needs to use timed commands for that. 
Exactly [1]!
>  My question is: can I accomplish auto phase alignment with GNU Radio or is 
> there a way to use timed commands from within GNU Radio?
Two ways:

  * Using the set_command_time method explicitely
  * Message passing

The first way is pretty simple: you use python (or C++, but I'm assuming
you're using Python to build your flowgraphs) to call
usrp_source/_sink.set_command_time(uhd.time_spec(?)), the
set_rx/tx_frequency, then clear_command_time. The problem with this is
you'd have to modify a python file (which, if you use GRC, would be
overwritten the next time you generate the python file), it's pretty
hard to do this in sync with e.g. information gotten from the received
samples etc.

The GNU Radio USRP blocks have message passing interfaces. These take
specially formatted messages containing commands [3]. You can, for
example, use the message strobe or a self-written block to send such
messages.

Best regards,
Marcus


[1] http://files.ettus.com/manual/page_sync.html#sync_phase_lo
[2]
http://gnuradio.org/doc/doxygen/classgr_1_1uhd_1_1usrp__block.html#ae5876b4e9350ea4bfbc16fedfcb65741
[3] http://gnuradio.org/doc/doxygen/page_uhd.html


On 30.05.2016 18:21, Schild Jonas via USRP-users wrote:
> Hi all
>
> I have a question that was probably already answered, but I searched the 
> mailling list and knowledge base up and down and only found pieces to the 
> answer of my question.
>
> Here's my setup (UHD 3.9.3 and GNU Radio 3.7.9.2):
> I have two USRP X310 with SBX daughter boards. Both are connected to the 
> OctoClockG for PPS and 10MHz references. I use a single USRP source block in 
> GNU Radio, which I configured to include the 2 X310s, so I get 4 Rx channels. 
> All 4 channels start sampling at the same time (PPS is sync is working), but 
> the phases between the channels are not aligned (input signal is a sine from 
> a signal generator).
> I read that the LOs on the SBX have the feature to be set to a known phase 
> after tuning. But one needs to use timed commands for that. My question is: 
> can I accomplish auto phase alignment with GNU Radio or is there a way to use 
> timed commands from within GNU Radio? I know that I could implement a phase 
> adjustment by software with a calibration "tone". But I'd rather use the LO 
> feature of the SBX boards before I invest time in learning how to write my 
> own OOT modules for GNU Radio to do that.
>
> I'm sorry if this topic has been covered/discussed and answered before. I 
> only found solutions that covered development with the UHD API directly, 
> without GNU Radio.
>
> Thank you very much in advance!
>
> Best regards,
> Jonas
> _______________________________________________
> USRP-users mailing list
> [email protected]
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20160530/f02c6e4a/attachment-0001.html>

------------------------------

Message: 4
Date: Mon, 30 May 2016 21:10:25 +0500
From: Haris Tanveer <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [USRP-users] saving signal in a file in GNU
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

I am receiving signals through my USRP n-210 through using GNU radio 
software.Kindly guide me how can i save the the received signal in GNU  and in 
which format so that i can import that signal file in matlab for analysis...    
                                      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20160530/6a425c5a/attachment-0001.html>

------------------------------

Message: 5
Date: Mon, 30 May 2016 18:47:28 +0200
From: Marcus M?ller <[email protected]>
To: [email protected]
Subject: Re: [USRP-users] saving signal in a file in GNU
Message-ID: <[email protected]>
Content-Type: text/plain; charset="windows-1252"

Hi Haris,

this might really be a discussion for the GNU Radio? mailing list, but
they'd tell you about the same as I do here:
Use a file sink.

Now, I think it's really worth pointing out that you should go through
the GNU Radio Tutorials,
http://tutorials.gnuradio.org
as they explain how to do that quite illustratively and fast.

Best regards,
Marcus

?by the way, "GNU" is just some kind of free software mother
organization. The software you're working with is called "GNU Radio".

On 30.05.2016 18:10, Haris Tanveer via USRP-users wrote:
> I am receiving signals through my USRP n-210 through using GNU radio
> software.
> Kindly guide me how can i save the the received signal in GNU  and in
> which format so that i can import that signal file in matlab for
> analysis...
>
>
> _______________________________________________
> USRP-users mailing list
> [email protected]
> http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.ettus.com/pipermail/usrp-users_lists.ettus.com/attachments/20160530/d147cbe1/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
USRP-users mailing list
[email protected]
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com


------------------------------

End of USRP-users Digest, Vol 69, Issue 31
******************************************

Reply via email to