cancel
Showing results for 
Search instead for 
Did you mean: 

Rendering frequency spectrum

Petr3
Associate III

Hello,

i want to render frequency spectrum FFT in the small area of screen and handle touch in this area. This should be done by some custom widget/container. Can you help me how to do it?

 

Best Regards,

Petr

3 REPLIES 3
GaetanGodart
ST Employee

Hello @Petr3 ,

 

It seems that the graph widget would be enough to display fast Fourier transform.

The dynamic graph have more methods available. You can for instance click on an area of the screen to get the data there.

Do you have something specific that you want to do that a graph widget wouldn't be able to do?

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)

Hello GaetanGodart,

yes, i trying to show RF signal periodically recieved from FPGA. So STM should recieve data, compute FFT and show each sample set in the display area. Additionaly touch and slide in this area should call some functions for show some menu, move frequency spectrum left/right etc. Basically touch and slide in the area should be handled.

 

Best Regards,

Petr

Sure!

 

I don't know how to help you on getting the data and computing the FFT.

 

However, I can help you on displaying the result of the FFT.
It seems you want to be able to zoom in and out and to move inside the graph when zoomed in.

To zoom, you can add a couple buttons (one to zoom in and one to zoom out).
You can look at the Dynamic Graph Example and at the methods getScale and setInterval.

To slide, you can fetch a drag movement directly on the widget natively.
You can look at the method setXAxisOffset.

 

Regards,

Gaetan Godart
Software engineer at ST (TouchGFX)