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.

CCS/CC430F6137: IQtoa problem on my project

Part Number: CC430F6137

Tool/software: Code Composer Studio

Sir,

IQmathlib is using my project for all calculation is working well but IQtoa function result value display the serial monitor through uart communication. display the wrong value (00.0000) and also I'm using own function ftoa. It's monitor the correct value.  please find the attachment for synapses.  How to solve this issues. Please send soon.

 

  • Hey Sivanathi,

    I think your issue is that you are loading a float into _IQtoa.  Section 4.2.5 of the IQmath Lib User's guide defines the inputs for IQtoa.  

    Here is the function definition:  

    int _IQtoa(char *A,  const char *B,   _iq C)

    You should be able to feed qC straight into _IQtoa.  

    Also, you can check for what _IQtoa() returns.  If it's currently returning a 2, this means that an illegal format was used.  

    Thanks,

    JD