discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] wx-scope


From: Johannes Demel
Subject: Re: [Discuss-gnuradio] wx-scope
Date: Mon, 6 Nov 2017 10:10:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

Hi Michael,

is there any specific reason why you want to use wx-scope? WX is deprecated and the Qt instrumentations should be a full replacement with additional features at this point. Usually it is quite simple to move from WX to Qt. Do you have any OOT modules using WX which prevent you from moving to Qt?

Besides, the actual error tells you that a value was expected while a vector was passed to the function.

Could you try to disable the legend? Since the error is thrown within a conditional statement.

happy hacking
Johannes

On 05.11.2017 20:57, Michael Hartje wrote:
dear list,

after installing the new Gnuradio-Companion  there is no function in
wx-scope (qt-scope works)

GNU Radio Companion 3.7.12git-295-ga0adcd33 (installed via pybombs)
pybombs version 2.3.2
ubuntu 16.04.3 LTS

Python 2.7 and 3.5 (standard -- calling python -- is 2.7)

GRC-Example:

a simple tone generator ,throttle and wx scope sink

--> does not work:

I got repetitive error lines until stopping the running
tone-example-program:

Starting the program shows:

Generating: '/home/hartje/Dokumente/sdr/grc/tone_simple.py'

Executing: /usr/bin/python2 -u /home/hartje/Dokumente/sdr/grc/tone_simple.py

and then the repeated line

--------

ValueError: The truth value of an array with more than one element is
ambiguous. Use a.any() or a.all()
Traceback (most recent call last):
  File
"/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/scopesink_nongl.py",
line 533, in format_data
    self.Draw(graphics, xAxis=x_range, yAxis=self.y_range)
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/plot.py",
line 903, in Draw
    self._drawLegend(dc,graphics,rhsW,topH,legendBoxWH, legendSymExt,
legendTextExt)
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/plot.py",
line 1206, in _drawLegend
    o.draw(dc, self.printerScale, coord= _numpy.array([pnt1,pnt2]))
  File "/usr/local/lib/python2.7/dist-packages/gnuradio/wxgui/plot.py",
line 211, in draw
    if coord == None:
ValueError: The truth value of an array with more than one element is
ambiguous. Use a.any() or a.all()

---------------

the wx fft-plot works without any problems, wx-Instrumentation works as
expected

How can I get wx-scope to work properly?

former (older) installations of GRC do work as expected (scope)

Any help appreciated

Thanks in advance

Michael Hartje




reply via email to

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