discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] Re: gr compiles on FC4(test3) ok - issue with usrp mu


From: cswiger
Subject: [Discuss-gnuradio] Re: gr compiles on FC4(test3) ok - issue with usrp mux
Date: Tue, 17 May 2005 18:11:07 -0400 (EDT)

On Tue, 17 May 2005, Eric Blossom wrote:

> On Tue, May 17, 2005 at 11:42:48AM -0400, cswiger wrote:
> >
> > I finally got gr to compile on Fedora Core 4 (test 3) by
> > installing gcc3.4.3, then recompiling cppunit with gcc3.
>
> What compiler version came with it?
>

gcc4

> >
> >     return _usrp1.usrp1_source_c_sptr_set_mux(*args)
> > OverflowError: argument number 2: long int too large to convert to int
> >
> >
> > is there a workaround for set_mux??
>
> Thanks for the reports.
>
> Try this:
>
>   src = usrp.source_c (0, decim, 1, int(0xf0f0f0f2), 0)
>
> or this:
>
>   src.set_mux(int(0xf0f0f0f2))
>
> and let me know what happens.
>

same thing, using src.set_mux(int(0xf0f0f0f2)):

    return _usrp1.usrp1_source_c_sptr_set_mux(*args)
OverflowError: argument number 2: long int too large to convert to int

in python2.4:

>>> mux=0xf0f0f0f2
>>> mux
4042322162L
>>> int(mux)
4042322162L
>>> int(4042322162)
4042322162L

Guessing that they started enforcing the sign bit - I tried
getting the two's complement for 0xf0f0f0f2 ( xor ffffffff + 1 )
on a calculator and using

src.set_mux(-252645134)

and that works!

--Chuck





reply via email to

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