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
<?xml version="1.0"?> <!-- ################################################### ##transcendental functions ################################################### --> <block> <name>Transcendental</name> <key>gr_transcendental</key> <import>from gnuradio import gr</import> <make>gr.transcendental($name, "$type")</make> <param> <name>Type</name> <key>type</key> <type>enum</type> <option> <name>Complex_double</name> <key>complex_double</key> <opt>type:complex</opt> </option> <option> <name>Complex</name> <key>complex_float</key> <opt>type:complex</opt> </option> <option> <name>Float_double</name> <key>float_double</key> <opt>type:float</opt> </option> <option> <name>Float</name> <key>float</key> <opt>type:float</opt> </option> </param> <param> <name>Function Name</name> <key>name</key> <value>cos</value> <type>string</type> </param> <sink> <name>in</name> <type>$type.type</type> </sink> <source> <name>out</name> <type>$type.type</type> </source> </block>
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio