IQ math library usage
7 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!