IQ math library usage

7 次查看(过去 30 天)
Diego Colás
Diego Colás 2021-7-6
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

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by