This example demonstrates usage of SFRA library. PI controller is designed for plant of constant value for testing the functionality of SFRA. When "sfra1.start" variable provided with value "1" at run time will initiate the SFRA functionality for configured frequency vectors and calculates plant /open loop/ closed loop magnitude and phase vectors. These data points can be exported and used for boded plots generation.
Folder/Files | Description |
---|---|
sfra_main.c | Main function for SFRA Library testing |
sfra_main.h | Main function for defining control loop functionality with SFRA |
sfra_examples_hal.c and sfra_examples_hal.h | files for setting up interrupt and gpio profiling |
sfra_examples_settings.h | User configurable SFRA defines |
sfra_f32.h | SFRA library related header file |
dcl/ | Folder with DCL library related files |
sfra.syscfg | EPWM Configuration as per testing requirement |
Parameter | Value |
---|---|
CPU + OS | r5fss0-0 nortos |
r5fss0-0 freertos | |
Toolchain | ti-arm-clang |
Boards | am263x-cc |
Example folder | examples/sfra |
Shown below is a sample output when the application is run:
Magnitude and phase vector data values after SFRA initiated by providing "1" to sfra1.start is shown in figure-