Example Code

Short-Time Fourier Transform

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

Computes the signal energy distribution in the time-frequency domain by using the short-time Fourier transform (STFT).

 

Description

The short-time Fourier transform consists on obtaining the energy distribution on a section of a signal over time. This analysis is displayed on a joint time-frequency chart displaying the most energized frequencies over time.


Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Open the "Moving STFT with Simulated Signal LV2012 - NIVerified.vi"
2. Select the Run button
3. Choose Select the Window and Sample lengths
4. Shift the sliders to see how the noise and frequency affects the displayed STFT chart.

 

Additional Information or References

 Capture.PNG

Product Support Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
frecce93
Member
Member
on

How can I obtain the signal amplitude from the  energy distribution ? I want a graph with frequency bins vs time vs signal amplitude