Hi Marcus! 
Thanks for answering. 
I don't know if time raster is
good for me.Let me explain. 
My block is of sync type, i receives as
input a stream of scalars and produce as output as stream of vectors of
length L=M*N. 
I want to display the output as a NxM 2D graphic with the
color mapped by the values of the vector. 
If I well understand, the
time raster receives as input a stream, so I need to use a "vector to
stream" block in order to serialize data. Furthermore I have to set the
sample rate of the sink as samp_rate*N*M (where samp_rate is the sample
rate of the custom block input). 
The problem is that if I set N and M
as the number of columns and rows, respectively, the graphic is updated
row by row and not in one shot. How can produce the complete image at
each updating interval. 
Thanks for help. 
Ivan 

Il 26.09.2023 14:22
Marcus Müller ha scritto: 

> Hi Ivan,
> 
> if you want to display 2D
data with a color dimension, the QT GUI Time Raster Sink would a 
>
possible choice. I made a quick flow graph to demonstrate:
> 
>
https://wiki.gnuradio.org/index.php?title=QT_GUI_Time_Raster_Sink#Example_Flowgraph
[1]
> 
> On 26.09.23 13:30, kron...@tiscali.it [2]wrote:
> 
>> Hi all!
I wrote a custom python block that emits items consisting on flattened
matrices. I would like to dynamically plot these matrices as a coloured
surface (similar to the waterfall sink) and update the surface based on
refresh rate provided by the user. How could I implement this using
gnuradio? Could you provide me an example code? Thanks a lot in advance!
Ivan
  

Reply via email to