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 <[email protected]> 대신 Discuss-gnuradio
<[email protected]>
보낸 날짜: 2018년 3월 6일 화요일 오전 7:16:32
받는 사람: John Ackermann N8UR
참조: [email protected]
제목: 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
<[email protected]<mailto:[email protected]>> 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
[email protected]<mailto:[email protected]>
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
--
Very Respectfully,
Dan CaJacob
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio