IQ math library usage

7 views (last 30 days)
Diego Colás
Diego Colás on 6 Jul 2021
Hi all,
I am having some trouble with the IQmath library for enhancing code speed. I have a double PI controller inside an ISR triggered by an ADC interrupt. The SOC for the ADC happens every 12us.
If I have the controller self made with normal floating point multiply operations and data types it works fine. However, when I try to exchange the controller or its operations with blocks from the library IQmath, my code becomes slower and can no longer reach these 12us.
Is there something I am missing out here? I have no fixed point license, could that be causing any inconvenience?
Here a small extraction of the code. From here I am guessing the installation of the IQmath lib went OK.
Thanks for the help

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!