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/TIDM-1000: three-phase Vienna

Part Number: TIDM-1000
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

I saw Vienna in the Vienna. C file   VIENNA_ vRmsMeasAvg_ Pu=0;But in the Vienna. H file, for Vienna_ vRmsMeasAvg_ Pu is used for operation. Is the value of this parameter always 0?

I think there should be an assignment formula similar to this:VIENNA_ vRmsMeasAvg_ Pu=(VIENNA_v1Meas_pu+VIENNA_v2Meas_pu+VIENNA_v3Meas_pu)/3;But I didn't find anything

  • Hi,

     VIENNA_ vRmsMeasAvg_ Pu is initialized to be 0 in Vienna. C file. It will be updated by

    EMAVG_MACRO(VIENNA_sine_mains1.vRms, VIENNA_vRmsMeasAvg_pu);

    Regards,

    Chen

  • Thank you very much.

    I found this function EMAVG_MACRO(VIENNA_sine_mains1.vRms, VIENNA_vRmsMeasAvg_pu);

    #define EMAVG_MACRO(in, out)  out = ((in - out) * (float32_t)0.000528) + out;

    I don't quite understand the 0.000528 number?Can you explain it?

    Best wish

  • Hi,

    Sorry for late reply. If you download controlSUITE, you could refer to the solarlib.pdf in this routine.

    C:\ti\controlSUITE\libs\app_libs\solar\v1.2

    see page 139~140. 

    This can be seen as a special case for a Low Pass Filter, where pass
    band gain is equal to Multiplier.

    This value should probably be 0.000628 based on equation in page 140. But original value should be fine.

    Regards,

    Chen