2024-07-08 6:36 AM - last edited on 2024-07-23 8:38 AM by Amel NASRI
Hello ST team,
I have logged raw data by using hsdatalog_GUI.py in STM32CubeFunctionPack_DATALOG2_V2.1.1 from STEVAL-STWINKT1b board to PC and seen the FFT diagram in GUI. The acquired raw data was saved locally in an automatically generated folder. After that I tried to plot FFT figure by activing the command hsdatalog_plot.py -ft. However, figures it plot are all in time domain. Figures are attached below. What I expected is the power density spectrum over a frequency band.
Solved! Go to Solution.
2024-07-25 7:40 AM
Hello @JW1
The figure you attached is the Power Spectral Density of the accelerometer data, so it is not true that all figures are in time domain.
HSDPython SDK supports PSD calculation for microphones and accelerometers only.
What are you expecting for? Am I misunderstanding your question?
Best regards
Simone
2024-07-25 7:40 AM
Hello @JW1
The figure you attached is the Power Spectral Density of the accelerometer data, so it is not true that all figures are in time domain.
HSDPython SDK supports PSD calculation for microphones and accelerometers only.
What are you expecting for? Am I misunderstanding your question?
Best regards
Simone
2024-08-13 8:05 AM
Hello @JW1
Any news on the topic? Do you need further support for your request?
Best regards
Simone
2025-08-07 8:05 AM
hello SimonePradolini
i would like to plot my microphone(IMP23ABSU sensor) data in FFT. i was able to generate the graph in time domain. May i know what steps should i take for plotting FFT.
kind regards
Jose John
2025-08-08 12:38 AM
Hello @josejohn
The SDK contains ready-to-use scripts. To plot data, you can use stdatalog_plot.py. The right syntax to plot IMP23ABSU data as FFT it:
python stdatalog_plot.py YourAcquisitionFolder -fp -s imp23absu_mic
For your knowledge: by using the -h argument, you'll see the helper with all the feature supported. This is valid for all the example available.
Best regards,
Simone
2025-08-08 3:47 AM
Hello Simone Pradolini
The above code worked and i was able to plot the FFT.
kind Regards,
Jose John