Fft of real-time data

I am doing some vibration analysis, an accelerometer is attached to the object. I am also using the Telnetstream library with the mpu6050 using WiFi. The data from the accelerometer is viewed on putty.

Can I get tips or advice on how to get the FFT of the data from putty in real-time?

Running on the PC side?

Yes, please.

Maybe something here:
https://listoffreeware.com/free-audio-spectrum-analyzer-software-windows/

Thanks for this but can figure out how to link to the wifi or putty

Actually, you are getting it from serial, not putty. You could see if there is anything written in Python or Matlab.

Putty can write a log file containing the raw data. You will very likely have to reformat the data for input to the FFT program you choose.

Yeah, but... not real time.

Some languages may not permit it, but for Windows, a memory map file can be open for write by one program and open for read by another:
https://docs.microsoft.com/en-us/dotnet/standard/io/memory-mapped-files

A memory-mapped file contains the contents of a file in virtual memory. This mapping between a file and memory space enables an application, including multiple processes, to modify the file by reading and writing directly to the memory. You can use managed code to access memory-mapped files in the same way that native Windows functions access memory-mapped files, as described in Managing Memory-Mapped Files.

Obviously, one may need to create these two utility programs.

We could also, I believe, use PowerShell to establish pipes for two applications, but I cannot find a reference to confirm.

It may be possible to do just establish piping from command shell:
Command Redirection, Pipes - Windows CMD - SS64.com

Code for serial terminals in Windows is easy to find, so building up a terminal program should be straight forward.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.