I am developing an application to receive sound signals from a microphone and display the values on a Graph. I am using Vector Graphics to display the moving plot as mentioned in Example https://doc.embedded-wizard.de/path-data?v=9.20.I have been able to successfully receive ADC values from my raspberryPi and ADC setup onto the GUI and display the graph.
However , the Main problem is that I need to acquire 30000 samples every second. I can clearly see from the graph that the sampling rate is well below the required mark. Eventhough the ADC has been configured to acquire at 30kSPS, the overall size of the C program including all the functions of Embedded Wizard are not allowing the DeviceDriver to run fast enough to capture the required number of datapoints.
Kindly, suggest how should I decouple the acquisition from the GUI program so as to be able to Acquire and display such a number of datapoints or whether any other approach should be followed.
Thanks in advance.