discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Rounding values in QT Number


From: Kyeong Su Shin
Subject: Re: [Discuss-gnuradio] Rounding values in QT Number
Date: Tue, 6 Mar 2018 00:58:16 +0000

To whom it may concern:


A quick and (very) dirty workaround that I used before is using QT GUI Label and Function Probe ("Default Value" of the QT GUI Label set to the ID of the Function Probe block, Function Probe block is set to probe a custom block or a Probe Signal block).


Please note that you may still have to deal with the IEEE754 representation issues (depending on your implementations).


Regards,

Kyeong Su Shin


보낸 사람: Dan CaJacob <address@hidden> 대신 Discuss-gnuradio <discuss-gnuradio-bounces+address@hidden>
보낸 날짜: 2018년 3월 6일 화요일 오전 7:16:32
받는 사람: John Ackermann N8UR
참조: address@hidden
제목: Re: [Discuss-gnuradio] Rounding values in QT Number
 
I don't remember if the QT sink has this, but I seem to recall that some GUI sinks have "formatters" which are basically the same as the python formatter concept. 

On Mon, Mar 5, 2018 at 4:41 PM John Ackermann N8UR <address@hidden> wrote:
I hate to put such a dumb question to the list, but I'm going nuts
trying to do something that ought to be simple.

I am using a QT Number Sink to display dB values in float format.  It is
showing many more decimal places than have any meaning.  I'd like to
round the display to one or two decimal places.

I tried making an embedded python block to do the rounding and finally
succeeded (it was a long and painful process, and frankly I don't
understand why I had to do what I did to get it to work), but the number
sink is still printing all the extra decimal places, they're just now
set to zero.

Is there any trick to round or even just truncate the number of decimal
places shown in the QT Number Sink?

Thanks,
John

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
--
Very Respectfully,

Dan CaJacob

reply via email to

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