Re: [Discuss-gnuradio] which math library to link with

2011-12-02 Thread Moritz Fischer

On 12/02/2011 02:05 PM, Marcus Müller wrote:

Martin Braun wrote:
 > [1] But perhaps they're reading this and would like to comment.

Indeed ;-)


Conclusion: Try the GSL, it's SVD methods should work quite fine.
If you don't like gsl, try armadillo. If you're fine with fortran
and LAPACK: Do it. Write a C header file for your Fortran functions
and call them. Build a fortran shared library and link it to your c++
library. Do math. Really fast.


Um ...I agree with, use GSL if it works for you. However I have to 
say that the upstream armadillo code does weird stuff for matrices < 
64x64 (they propose their own matrix multiplication algorithm which for 
our case was _horribly_ slow).


As Martin pointed out, see the SpecEst Toolbox on how to do stuff wit 
CMake. If you'd rather use autotools, contact me off list, I should 
still have the project lying around somewhere.


I also started the gr-linalg toolbox back in 2009, but never had the 
time to work on it. It has an example for SVD though, however I haven't 
tried it since ages ... might need some tweaking, might be even broken...


Cheers and happy hacking,

Moritz

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


Re: [Discuss-gnuradio] Problem with dial_tone.py

2011-12-02 Thread Muhammad Rosli
Hi,

It's because gnuradio cannot find your share file. Try to set environment
variable of LD_LIBRARY_PATH and PYTHONPATH. For example, if you are
installing gnuradio using default setting, you can setup the environment
path in terminal as follow

export LD_LIBRARY_PATH=/usr/local/lib
export PYTHONPATH=/usr/local/lib//dist-packages
or
export PYTHONPATH=/usr/local/lib//site-packages

where  depends on what python version is installed.

Before you set the environment path, please check
that  libgnuradio-core-3.5.0rc0.so.0 is in /usr/local/lib and there are
gnuradio folder inside the python path.

Regards,
Muhammad

On Sat, Dec 3, 2011 at 7:54 AM, Cyril Cavel  wrote:

> Hello,
>
> I installed Gnuradio on Ubuntu 10_04, following instructions on :
> http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall
>
> Everything seems to be ok until I try :
> sat-ais@sat-ais-laptop:/usr/local/share/gnuradio/examples/audio$ python
> dial_tone.py
>
> to test correct installation of Gnuradio. I got the following error :
>
> sat-ais@sat-ais-laptop:/usr/local/share/gnuradio/examples/audio$ python
> dial_tone.py
> Traceback (most recent call last):
>   File "dial_tone.py", line 23, in 
> from gnuradio import gr
>   File "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/__init__.py",
> line 43, in 
> from gnuradio_core import *
>   File
> "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core.py", line
> 23, in 
> from gnuradio_core_runtime import *
>   File
> "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py",
> line 24, in 
> _gnuradio_core_runtime = swig_import_helper()
>   File
> "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py",
> line 20, in swig_import_helper
> _mod = imp.load_module('_gnuradio_core_runtime', fp, pathname,
> description)
> ImportError: libgnuradio-core-3.5.0rc0.so.0: cannot open shared object
> file: No such file or directory
>
> Does anybody know what the problem is please ?
> I have to say that I'm a beginner on Linux, I already successfully built
> Gnuradio on Windows using Cygwin, and now I need to install it on Ubuntu.
>
> Thanks a million for your help.
>
> Cyril
>
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>


-- 
Regards,
Muhammad b Rosli
Student
Bachelor of Electrical and Electronic
University of Canterbury
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Problem with dial_tone.py

2011-12-02 Thread Cyril Cavel
Hello,

I installed Gnuradio on Ubuntu 10_04, following instructions on :
http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall

Everything seems to be ok until I try :
sat-ais@sat-ais-laptop:/usr/local/share/gnuradio/examples/audio$ python
dial_tone.py

to test correct installation of Gnuradio. I got the following error :

sat-ais@sat-ais-laptop:/usr/local/share/gnuradio/examples/audio$ python
dial_tone.py
Traceback (most recent call last):
  File "dial_tone.py", line 23, in 
from gnuradio import gr
  File "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/__init__.py",
line 43, in 
from gnuradio_core import *
  File
"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core.py", line
23, in 
from gnuradio_core_runtime import *
  File
"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py",
line 24, in 
_gnuradio_core_runtime = swig_import_helper()
  File
"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py",
line 20, in swig_import_helper
_mod = imp.load_module('_gnuradio_core_runtime', fp, pathname,
description)
ImportError: libgnuradio-core-3.5.0rc0.so.0: cannot open shared object
file: No such file or directory

Does anybody know what the problem is please ?
I have to say that I'm a beginner on Linux, I already successfully built
Gnuradio on Windows using Cygwin, and now I need to install it on Ubuntu.

Thanks a million for your help.

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


Re: [Discuss-gnuradio] build-gnuradio needs updates

2011-12-02 Thread Marcus D. Leech

On 2-12-2011 11:38 AM, Paul M. Bendixen wrote:

On my Gentoo system, I also get the Udev errors,
I don't know where excacly this comes from (but it is annoying).

It might be part of the build system of the UHD driver, since I 
haven't tried using the script.


Best
Paul


Well, build-gnuradio doesn't support anything other than Ubuntu and Fedora.

But it sounds like UDEV is migrating to a new syntax for entries in the 
config files under /etc/udev/rules.d, and that it's issuing

  preemptive warnings that the old syntax will stop working at some point.

I'm not sure if the UHD "make install" now also puts in the rules in 
/etc/udev/rules.d, if it does, I need to coordinate with Josh

  I guess.




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


Re: [Discuss-gnuradio] build-gnuradio needs updates

2011-12-02 Thread Paul M. Bendixen
On my Gentoo system, I also get the Udev errors,
I don't know where excacly this comes from (but it is annoying).

It might be part of the build system of the UHD driver, since I haven't
tried using the script.

Best
Paul

2011/12/2 Marcus D. Leech 

> On 2-12-2011 10:06 AM, alick wrote:
>
>> Hi all,
>>
>> I am a newcomer here. I previously use the build-gnuradio script to
>> get a modern version of gnuradio and UHD. The script did a great job.
>> But I guess some (small) updates are needed.
>>
>> One is related to udev conf. I saw the warning while booting my OS
>> (Fedora 14):
>>
>> Starting udev: udevd[584]: BUS= will be removed in a future udev
>> version, please use SUBSYSTEM= to match the event device, or SUBSYSTEMS=
>> to match a parent device, in /etc/udev/rules.d/10-usrp.rules:3
>>
>> I searched the web and this page[1] suggests that substitution will
>> work. But I'm not sure.
>>
>> Another is with the latest Fedora 16. I plan to upgrade my OS in a few
>> days(maybe just tomorrow), and the current script only supports up to
>> Fedora 15...
>>
>> [1] http://sdrblog.wordpress.com/gnuradio-installation/
>>
> I don't have any plans to immediately support F16.  If you, or someone
> else, wants to send patches, I'm happy to merge them
>  in.  I don't own any F16 systems myself, and don't have immediate plans
> to upgrade.
>
>
>
>
>
>
> ___
> 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


Re: [Discuss-gnuradio] build-gnuradio needs updates

2011-12-02 Thread Marcus D. Leech

On 2-12-2011 10:06 AM, alick wrote:

Hi all,

I am a newcomer here. I previously use the build-gnuradio script to
get a modern version of gnuradio and UHD. The script did a great job.
But I guess some (small) updates are needed.

One is related to udev conf. I saw the warning while booting my OS
(Fedora 14):

Starting udev: udevd[584]: BUS= will be removed in a future udev
version, please use SUBSYSTEM= to match the event device, or SUBSYSTEMS=
to match a parent device, in /etc/udev/rules.d/10-usrp.rules:3

I searched the web and this page[1] suggests that substitution will
work. But I'm not sure.

Another is with the latest Fedora 16. I plan to upgrade my OS in a few
days(maybe just tomorrow), and the current script only supports up to
Fedora 15...

[1] http://sdrblog.wordpress.com/gnuradio-installation/
I don't have any plans to immediately support F16.  If you, or someone 
else, wants to send patches, I'm happy to merge them
  in.  I don't own any F16 systems myself, and don't have immediate 
plans to upgrade.






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


[Discuss-gnuradio] build-gnuradio needs updates

2011-12-02 Thread alick
Hi all,

I am a newcomer here. I previously use the build-gnuradio script to
get a modern version of gnuradio and UHD. The script did a great job.
But I guess some (small) updates are needed.

One is related to udev conf. I saw the warning while booting my OS
(Fedora 14):

Starting udev: udevd[584]: BUS= will be removed in a future udev
version, please use SUBSYSTEM= to match the event device, or SUBSYSTEMS=
to match a parent device, in /etc/udev/rules.d/10-usrp.rules:3

I searched the web and this page[1] suggests that substitution will
work. But I'm not sure.

Another is with the latest Fedora 16. I plan to upgrade my OS in a few
days(maybe just tomorrow), and the current script only supports up to
Fedora 15...

[1] http://sdrblog.wordpress.com/gnuradio-installation/

-- 
alick
Fedora 14 (Laughlin) user
https://fedoraproject.org/wiki/User:Alick

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


Re: [Discuss-gnuradio] which math library to link with

2011-12-02 Thread Marcus Müller

Martin Braun wrote:
> [1] But perhaps they're reading this and would like to comment.
Yes, we do!
The problem with the gsl is that it provides methods for real
symmetric and nonsymmetric eigenvalue problems, but only for complex
hermitian, and we needed to decompose nonsymmetric complex matrices.
But afaIk it has singular value decomposition methods
of the like gsl_linalg_SV_decomp*, I've just never worked with those.
Amardillo is a library with a very nice and intuitive (read: comparably
easy to use as matlab when handling matrizes) API, providing SVDs
(which I did not test either), which, sadly has not have a very long 
history yet, and did go through some API changes in the recent past.
When using Fortran, we did not actually add a lot of library (aside from 
LAPACK) dependencies, but the need for a decent fortran compiler,
and a whole lot of makefile magic. Calling fortran functions from C++/GR 
works nicely, if you realize you really have to take care you pass the 
right arguments.


Conclusion: Try the GSL, it's SVD methods should work quite fine.
If you don't like gsl, try armadillo. If you're fine with fortran
and LAPACK: Do it. Write a C header file for your Fortran functions
and call them. Build a fortran shared library and link it to your c++
library. Do math. Really fast.

Happy Hacking

Marcus Müller



On Dec 1, 2011, at 4:56 PM, Achilleas Anastasopoulos  
wrote:


> > > We are writing a block that requires SVD of matrices.
> > > Is there a preferred library (eg, LAPACK) that other gnuradio blocks
> > > are already using that we can link with.
> > > I don't want to add another library dependence...

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


Re: [Discuss-gnuradio] phase stability of 100MHz clock in USRP2

2011-12-02 Thread Marcus D. Leech
On 02/12/11 07:10 AM, Nakajo Tomoyuki wrote:
> Dear All,
>
> Please tell me the phase stability of 100MHz clock in USRP2 when the
> 100MHz clock is locked to an external 10MHz reference signal.
>
> I have measured the temporal variation of phase difference between two
> USRP2 outputs when a 10MHz signal is fed into PPS IN ports of two
> USRP2s. The input signal of each USRP2 is fed by a same oscillator where
> the output frequency is set to 26MHz. The result indicates the phase
> difference varies from 0 to 2pi radians in about 100msec. This similar
> result is obtained in the case a 10MHz signal is not fed into PPS IN
> port. I think this observed temporal variation of phase difference is
> too rapid, therefore, suspect the 100MHz clocks are unlocked to the
> external 10MHz signal.
>
> Best regards,
> Nakajo Tomoyuki
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>   
Are you configuring your UHD sink to use the extneral ref clock?

Does your external reference meet the hardware requirements:

http://files.ettus.com/uhd_docs/manual/html/usrp2.html#ref-clock-10mhz

Have you measured the phase noise of your reference?



-- 
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org



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


[Discuss-gnuradio] phase stability of 100MHz clock in USRP2

2011-12-02 Thread Nakajo Tomoyuki
Dear All,

Please tell me the phase stability of 100MHz clock in USRP2 when the
100MHz clock is locked to an external 10MHz reference signal.

I have measured the temporal variation of phase difference between two
USRP2 outputs when a 10MHz signal is fed into PPS IN ports of two
USRP2s. The input signal of each USRP2 is fed by a same oscillator where
the output frequency is set to 26MHz. The result indicates the phase
difference varies from 0 to 2pi radians in about 100msec. This similar
result is obtained in the case a 10MHz signal is not fed into PPS IN
port. I think this observed temporal variation of phase difference is
too rapid, therefore, suspect the 100MHz clocks are unlocked to the
external 10MHz signal.

Best regards,
Nakajo Tomoyuki

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


Re: [Discuss-gnuradio] which math library to link with

2011-12-02 Thread Martin Braun
On Thu, Dec 01, 2011 at 05:06:10PM -0500, Tim O'Shea wrote:
> gsl
> 
> On Dec 1, 2011, at 4:56 PM, Achilleas Anastasopoulos  
> wrote:
> 
> > We are writing a block that requires SVD of matrices.
> > Is there a preferred library (eg, LAPACK) that other gnuradio blocks
> > are already using that we can link with.
> > I don't want to add another library dependence...

As part of the Spectral Estimation Toolbox, some of our students had
similar requirements, but GSL didn't work then--I'm afraid I don't know
the exact reason[1]--and then used Armadillo and Fortran (which are not
standard libs for GNU Radio).
For the handling of small matrices (on the order of 64 x 64 and below),
Fortran actually worked best, faster than any other library.

MB

[1] But perhaps they're reading this and would like to comment.
-- 
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin Braun
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association



pgpddcoMcyiwk.pgp
Description: PGP signature
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio