This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ASIN/ACOS function in IQMath

Other Parts Discussed in Thread: CONTROLSUITE

Would someone please direct me to the correct header file for IQ math so that I can use ASIN function? The version I have doesn't recognize ASIN and ACOS but works fine with ATAN!!! I get a regular error message for an undefined symbol (_IQasin) I can work around if the fuction is not implemented but would be great if I can use ASIN or ACOS ... thank you in advance for your time and assistance.

  • Arefeen Mohammed said:
    Would someone please direct me to the correct header file for IQ math so that I can use ASIN function? The version I have doesn't recognize ASIN and ACOS but works fine with ATAN!!! I get a regular error message for an undefined symbol (_IQasin) I can work around if the fuction is not implemented but would be great if I can use ASIN or ACOS ... thank you in advance for your time and assistance.

    Arefeen,

    The unknown symbol message would indicate the library isn't being included.  Can you double check - _IQasin and IQacos were added in the IQmath library V1.5.  If you happen to have linked in an earlier version the functions will not be present.

    If you confirm and still have issues then I will try to reproduce it.

    Cheers,

    -Lori

  • Good morning Lori

    Thanks for the answer - I just checked and looks like I have v15a ... I checked the library path which is C:\tidcs\c28\IQmath\v15a\lib\IQmath.lib

    Most likely I am missing something obvious...... by the way, I have few suggestions if there is a plan for an upgrade for IQmath library ......

    Anyway, would you please confirm the version and the function? Thank you for your time and assistance.

  • Arefeen Mohammed said:

    Thanks for the answer - I just checked and looks like I have v15a ... I checked the library path which is C:\tidcs\c28\IQmath\v15a\lib\IQmath.lib

    Most likely I am missing something obvious...... by the way, I have few suggestions if there is a plan for an upgrade for IQmath library ......

    Anyway, would you please confirm the version and the function? Thank you for your time and assistance.

    Arefeen,

    Please pass along your suggestions.

    I cannot reproduce the issue.  I grabbed the  latest IQmath install from controlSUITE, added a call to the _IQacos function in the example project for 2808 and it builds without a symbol undefined error.   This is version 15c, but the library itself has not changed since 15 - only the header file and the addition of CCS 4 examples.

     

     

  • Hmmm... sounds like an operator error on my side :-(  Let me download the library again ......... as far as suggestion goes ... please consider having a

    1. standalone inverse Clarke block - currently it is implemented with PWM generaton block.

    2. block to provide both the angle and the magnitude of a complex number .. currently provides only magnitude.

    3. an added block with clark to provide angle information with reference to the input waveforms.

    4. log function, preference is natural log.

     

  • Lori - this is to let you know the functions are working now .. I didn't have the correct header file!! Again, thanks for your time. In case you are interested .. this is an active front-end design. In this phase, we will have separate controllers for the drive and the input converter but the goal is to utilize one controller for both inverter and converter.... fun stuff :-) again thank you and have a great week-end ......

  • Arefeen,

    I am glad to hear all is working now.  And thank you for the feedback.  I may have something preliminary for you with regards to the log function next week - stay tuned....

    -Lori

  • Will be nice to have natural log fuction - which will allow us to eliminate few look-up tables for various sensors. Many thanks for the continued innovations.