Forum: GNU Radio GRC: gr_trancendental.xml

Posted by Michael Hartje (Guest)
on 2013-02-10 20:30
Attachment: gr_transcendental.xml (1,02 KB)
(Received via mailing list)
dear list readers,

with GNU Radio Companion v3.6.3-35-g4435082f compiled via build-gnuradio
using transcendental grc-block gives the following error
---------------8<------------
.....
ValueError: itemsize mismatch: throttle(14):0 using 8,
transcendental(13):0 using 16
---------------8<------------

This showed to me, that the transcendental block uses an unexpexted data
type

In the explanations for the block I found:
---------------8<------------
    Possible function names can be found in the cmath library. IO may be
either complex or real, double or single precision.

    Possible type strings: float, double, complex_float, complex_double
---------------8<------------

I enclosed a diff, applied the the origirnal, works for me
---------------8<------------

17,21d16
<                       <name>Complex_double</name>
<                       <key>complex_double</key>
<                       <opt>type:complex</opt>
<               </option>
<               <option>
23c18
<                       <key>complex_float</key>
---
>                       <key>complex_double</key>
25,29d19
<               </option>
<               <option>
<                       <name>Float_double</name>
<                       <key>float_double</key>
<                       <opt>type:float</opt>
---------------8<------------

may be I am wrong; or newer versions have corrected the error or no one
else has tested this function unter GRC...

to clarify that: I enclosed the new gr_transcendental.xml

hopefully this applies to those who did not explore the work around by
themself

Michael Hartje
--
Prof. Dr.-Ing. Michael Hartje
Labor Hochspannungstechnik / Labor elektrische Messtechnik
Neustadtswall 30;   D-28199 Bremen
Tel +49 421 5905-3444    FAX +49 421 5905-3476
Posted by Martin Braun (CEL) (Guest)
on 2013-02-11 10:55
(Received via mailing list)
Can you post the flow graph?
We don't really ever use complex_double, so this seems wrong.

MB

On Sun, Feb 10, 2013 at 08:29:30PM +0100, Michael Hartje wrote:
> This showed to me, that the transcendental block uses an unexpexted data
> I enclosed a diff, applied the the origirnal, works for me
> ---
> else has tested this function unter GRC...
> Neustadtswall 30;   D-28199 Bremen
> Tel +49 421 5905-3444    FAX +49 421 5905-3476
>


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


--
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.