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.

IQ to Float conversion in HVACI_Scalar(f28335)

Good day everyone

I want to convert HVACI_Scalar project from fixed poin to float and met with the error "expression must have integral type" on SWGENMF_MACRO.

It looks like the problem is in bit shifting " >>"

I tried to use algarithm described in SPRC990 (IQmath user`s guide) But it doesn`t work.

        svgen_mf1.Gain = (int16)(32768.0L*vhz1.VoltOut);
        svgen_mf1.Freq = (int16)(32768.0L*SpeedRef);
         SVGENMF_MACRO(svgen_mf1);

Thank you for any help

Andrey