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

ID 683466
Date 5/15/2022
Document Table of Contents Running test_servofft.mdl

  1. When you run the test_servofft.mdl Simulink model in the project dspba directory, setup_test_servofft.m runs the set up configuration parameters for the FFT and imports sampled motor current data from the input data for the simulation file (test_servofft_sampledata.csv).
  2. DSP Builder generates the HDL code.
  3. Simulink runs the simulation, using the sampled current data from test_servofft_sampledata.csv as FFT input.
  4. analyze_test_servofft.m collects the simulation output and creates some MATLAB plots to verify correct calculation. It compares the simulated servo FFT output with that from the MATLAB FFT and with output data collected from servo FFT running in hardware.

Did you find the information on this page useful?

Characters remaining:

Feedback Message