2024-07-18 01:29 PM - edited 2024-07-18 01:33 PM
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
2024-07-19 01:57 AM
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,
2024-07-20 12:19 AM - edited 2024-07-20 12:36 AM
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
2024-07-22 02:22 AM
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,