AN 669: Drive-On-Chip Design Example for Cyclone V Devices

ID 683466
Date 5/15/2022
Public
Document Table of Contents

6.3.3. FFT0 and FFT1 Graphs

On the Vibration Suppression tab, System Console displays the following graphs:

  • Input signal to FFT0 against time.
  • The magnitude of FFT0 against frequency.
  • Input signal to FFT1 against time.
  • The magnitude of FFT1 against frequency.

The graphs update at the same time as the graphs on the Control and Diagnostics tab whenever the trigger function in that tab activates. Within the SoC, the 4,096pt FFT data recalculates after every 64 new data points. The data sample rate is 16 kHz, thus the FFTs recalculate at 250 Hz.

System Console saves both the time- and frequency-based data to the .csv file that you specify in the Control and Diagnostics tab. You can then verify offline the correctness of the FFT calculation.

The FFT magnitude data is in dB (i.e. 20*log10 absolute value in physical units) similar to a control system Bode plot.

A basic peak detection algorithm enables you to measure particular peaks and develop automated vibration suppression. For each of the two FFTs, the algorithm finds the maximum magnitude value between two specified frequency limits. Thus, you can search for peaks within a physically relevant range without seeing large FFT magnitudes that often occur at low frequencies. System Console shows the peaks with a cross-hair superimposed on the FFT magnitude graph. It shows the frequency and magnitude values below the graph.

Figure 19. Using the Graphs

You can zoom into an area of the graph by clicking and dragging the cursor over that area. To return to the original scaling, right-click on the graph and select Auto Range, Both Axes.'

Did you find the information on this page useful?

Characters remaining:

Feedback Message