Forum: GNU Radio Re: GRC version 0.60

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Anastasopoulos Achilleas (Guest)
on 2007-02-11 23:36
(Received via mailing list)
Josh,

I imported some blocks from gr-trellis on GRC.

However there seems to be a problem.
The graph does not run and exits with something like:

...
flow graph save
SRC_DIR: /net/ernesto/home/anastas/grc_mine/src
DATA_DIR: /net/ernesto/home/anastas/grc_mine/data
FILE_PATH: /n/ernesto/home/anastas
'module' object has no attribute 'fractional_interpolator'  in
Interpolate! -> continuing...
The program 'Run.py' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadPixmap (invalid Pixmap parameter)'.
   (Details: serial 15335 error_code 4 request_code 56 minor_code 0)
   (Note to programmers: normally, X errors are reported asynchronously;
    that is, you will receive the error a while after causing it.
    To debug your program, run it with the --sync command line
    option to change this behavior. You can then get a meaningful
    backtrace from your debugger if you break on the gdk_x_error()
function.)




Attached please find the following files:
Trellis.py   (the GRC implementation of some blocks in gr-trellis)
__init.__.py
test_encoder.py
test_encoder.grc.xml
(test files that shows the python code working fine and
the grc equivalent failing)


I would appreciate your input.
Once this is resolve, I can implement the rest
of the blocks in gr-trellis.


Thanks
Achilleas
Josh B. (Guest)
on 2007-02-12 01:13
(Received via mailing list)
I caught a mistake in the Trellis.py file. It was my fault for not
finishing the notes on adding signal blocks. The only reason I said to
declare fcn at the beginning of a definition was so that an attribute
error could be raised if the gnuradio block didnt exist. In this case,
by adding the names of the gnuradio block to the type = Enum(...), you
are doing the same thing in effect. And in the make method, you just
call type.parse()[0] ...if 0 was the index of the gnuradio block in the
type.parse() tuple.

So, calling fcn[0] at runtime would raise an error, but I dont
understand the X windows error.

I fixed the Trellis.py and ran your example. The screen shot and new
Trellis.py are attached.

I hope the Trellis works for you now.
-Josh

BTW, I added the trellis file to my repos.
This topic is locked and can not be replied to.