Skip to main content
Visitor II
April 30, 2021
Solved

How to choose the right timing constant for RMS (in ms) using FFT (MotionSP library)

  • April 30, 2021
  • 3 replies
  • 1985 views

There are many options for choosing the timing constant for RMS when using FFT. How to choose the right one? Why is the purpose of the timing constant for RMS? Please advise. Thanks!

    This topic has been closed for replies.
    Best answer by Eleon BORLINI

    Hi @JTam.1​ ,

    uhm... that looks like a Hanning time window for FFT: if so, this defines the time frame for which the FFT is calculated, and not the time base. So basically for calculating the FFT you take the number of point (in the time buffer) that are contained in T, and calculate the FFT on these points.

    A time constant for RMS is usually the timeframe containing the points for which the RMS is calculated (but always in time, no FFT).

    By the way, could you link the source of your picture?

    -Eleon

    3 replies

    ST Employee
    April 30, 2021

    Hi @JTam.1​ ,

    In general, the timing constant for RMS defines the time base for the processed signal, in the sense that in this interval a number of samples determined by RMS_time* 1/ODR is submitted to the RMS calculation.

    So, the FFT df -or resolution- of the output of this calculation will be, for Nyquist, 2/RMS_time.

    Not sure I have answered to your question, however...

    I'll ask internally to our experts and come back to you, in case.

    -Eleon

    JTam.1Author
    Visitor II
    May 4, 2021

    Hi Eleon, If I use 50ms of RMS time constant, the number of samples will be 1.87 x 10^-6 (50ms * 1/26667Hz). Is it right? Please advise. Thanks!

    ST Employee
    May 5, 2021

    Hi @JTam.1​ ,

    I see you posted a new post HERE. Can I refer to that one and close this one?

    -Eleon

    JTam.1Author
    Visitor II
    May 5, 2021

    Timing constant for RMS

    JTam.1Author
    Visitor II
    May 6, 2021

    Does the time constant for RMS mean below T? Please advise. Thanks!

    0693W00000ANUPgQAP.png

    ST Employee
    May 6, 2021

    Hi @JTam.1​ ,

    uhm... that looks like a Hanning time window for FFT: if so, this defines the time frame for which the FFT is calculated, and not the time base. So basically for calculating the FFT you take the number of point (in the time buffer) that are contained in T, and calculate the FFT on these points.

    A time constant for RMS is usually the timeframe containing the points for which the RMS is calculated (but always in time, no FFT).

    By the way, could you link the source of your picture?

    -Eleon

    JTam.1Author
    Visitor II
    May 6, 2021