FFT
===
The amplitude spectrum of the last N samples of u (pocketfft), and its strongest frequency. rate 0 reads the run clock's.
``fft`` · signal
.. raw:: html
FFTfn
size256
windownone
rate Hz0
Original
.. container:: pb-prose
Keeps the last ``size`` samples (64…1024) and outputs their amplitude spectrum and the strongest
bin's frequency. ``window`` is none, hann or hamming, and ``rate`` 0 reads the run clock's.
Inputs
------
.. list-table::
:header-rows: 1
* - Port
- Type
- Unit
- Components
* - ``u``
- signal
- —
- —
Outputs
-------
.. list-table::
:header-rows: 1
* - Port
- Type
- Unit
- Components
* - ``magnitude``
- numbers
- —
- —
* - ``peak_hz``
- signal
- —
- —
Parameters
----------
.. list-table::
:header-rows: 1
* - Param
- Type
- Default
- Options or unit
* - ``size``
- enum
- ``"256"``
- ``64``, ``128``, ``256``, ``512``, ``1024``
* - ``window``
- enum
- ``"none"``
- ``none``, ``hann``, ``hamming``
* - ``rate``
- number
- ``0.0``
- Hz