Hi, I am trying to write a Python code that enables a continuous ljm stream, and then creates a live FFT of the data in Python. I would really appreciate any tips for this, or code if anyone has done such a thing in the past. Thanks!
Hi, I am trying to write a Python code that enables a continuous ljm stream, and then creates a live FFT of the data in Python. I would really appreciate any tips for this, or code if anyone has done such a thing in the past. Thanks!
We do not have any examples to provide, but scipy has fft functions with examples, and you should be able to use matplotlib to create a live graph:
https://docs.scipy.org/doc/scipy/reference/fft.html#module-scipy.fft
https://stackoverflow.com/questions/11874767/how-do-i-plot-in-real-time-...
To stream on the LabJack, you could start from our stream basic example:
https://labjack.com/support/software/examples/ljm/python (LJM Python module install instructions are here)
https://github.com/labjack/labjack-ljm-python/blob/master/Examples/More/...