Hi
I was just trying to use interleave and deinterleave blocks. GNU
radio
installed is 3.6.2
flowchar is something like
vector source ---->
interleave ---->throttle—>deinterleave
—>scope sink
vector source ----->
The datatype is byte. when execute the flowchart i’am getting error
self.blocks_deinterleave_0 = blocks.deinterleave(blocks.sizeof_float*1)
AttributeError: ‘module’ object has no attribute ‘sizeof_float’. May be
the
error might be simple but i’am very new to C++ .
please help me to solve the issue
Thanks
Sandhya
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sandhya,
one quick question here: Is there really necessity to use 3.6.2
instead of 3.6.5 or 3.7?
Then: Ok, how do you come to the conclusion that sizeof_float would be
right for bytes?
And: I don’t see any C++, where is your C++ problem?
The sizeof_ attributes are members of the gr. module in
python.
Greetings,
Marcus
On 05.12.2013 10:37, Sandhya G wrote:
_______________________________________________ Discuss-gnuradio
mailing list [email protected]
Discuss-gnuradio Info Page
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJSoEpwAAoJEAFxB7BbsDrLhFAH/1ZBuRJh62L9MP9IW0lGusV1
4QpsuYLQSVn7Rk6BlCTsv8CQUJrfwS1iAgEO+hL0pooGv8/nTFt8rtwdDh5Jz+RI
RNSgy5OrXCwQsTBQ79BibhM2gF3x/ZVZYLItmZ8KpWbVdsJFSHVzkvb+lf4P+KVX
rLWmvGCxgx0eUC2MdWaBEXBxrUzGlF2Z0NSWb4R6VQRo4v7zWMOoel86s5lP/Mxg
xUTRR+2uuHFhTwTDJSJrUPEmu9VV4xK0O5jtIqm7BvXoibe7gTloxEZSpcO0+zhY
IyxKQWCtP2X1rvN2vn0eBXRVuI8EkBhyKYkwNx39N5aKshE2+bcKLjcTGOEU7N4=
=3J77
-----END PGP SIGNATURE-----
Because i’am using instant sdr live usb which has come installed with
3.6.2
Well sorry that message was like when i changed the datatype of the
deinterleaved block to float. Now i changed all the blocks datatype to
bytes so the error is
self.blocks_deinterleave_0 = blocks.deinterleave(blocks.sizeof_char*1)
AttributeError: ‘module’ object has no attribute ‘sizeof_char’
Thanks
Sandhya
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
As I’ve said, sizeof_char is in gr. and not in blocks.
On 05.12.2013 10:59, Sandhya G wrote:
module in python.
vector source ----> interleave ---->throttle—>deinterleave
mailing list [email protected]
Discuss-gnuradio Info Page
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJSoE7rAAoJEAFxB7BbsDrL8QEH/RGSyVk64A5K38DqugId4cdI
bL8gKQl9a6i6k78eeGQj1ftC8PbI8rdl6m6NZ2ve09Cr5taw1Mm29fmMwPnhYZ28
GRDTlY1M9sQ01DnjXuoqaMlZJ8fToZbU4XGMlRe7BdqHyJvs9Zn5mlihlXetriux
UakMEBd91VftP2b052fTSzvfO5YathNgQ582FM72QPAR75tyCuVl8bj4XQGBiQIt
xRNIzOHFrkyOIZeU/LsbVpV2FMns9K4QZ2Ge9q3ecnwTFKkeVfdYRFBHYY/iqXMt
Yloiib33pcK4Ly3FL8DKRv1K812B/VlSz6cZlcbSsKcOc7xSEQ6XUzSaZ0UYm5c=
=Evbx
-----END PGP SIGNATURE-----
Thanks for the reply Marcus
But can you be more clear about it.
Thanks
Sandhya
oops instead of python i mentioned it C++ . Sorry for that .
Thanks
Sandhya
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
not really:
use gr.sizeof_ instead of blocks.sizeof_ .
On 05.12.2013 11:05, Sandhya G wrote:
‘module’ object has no attribute ‘sizeof_char’
Then: Ok, how do you come to the conclusion that sizeof_float
blocks.deinterleave(blocks.sizeof_float*1)
Discuss-gnuradio mailing list [email protected]
Discuss-gnuradio Info Page
_______________________________________________ Discuss-gnuradio
mailing list [email protected]
Discuss-gnuradio Info Page
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJSoFBSAAoJEAFxB7BbsDrLqr8H/RgXIp738YfYa7i4HJ+ri7mk
NxwGzem9hpF9f59bG+MQq8chFJ35JuoA5WZcGnAVcQ2vYt9Uu8OKeiAQTTAW1oW7
ZmypkTbKJmwA8xofnqXRXPEHgjqjtNKOPLX3M80UY5Ydy4WhWseVweao8VbbbWt0
7cpWKZLhzUmlki7xyPJNGki1rLHhNgPmS8g39niCkzQe0uA3u9vzq6iRGdcmKOxJ
Q42dzy4eI9/tBVNfc6dm/8sD3mwOR1p7yzZ/zVRm3uIAt7ouCBHHH/wrGoOJ6Lro
ws2NhJWW4hLssi48f/98JC4H5682ge8oGL9yARHecuRh9Y9f8ffEYI7Yz4LyiDk=
=jeXE
-----END PGP SIGNATURE-----