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.

RMS value calculation in c2000 using simulink



I am taking ac voltage and current inputs from a hall effect sensors in C2000 controller. I want to read their rms values in order to calculate the power. I am taking help of a Simulink software for all this......How to convert the input to a RMS value, I have used the RMS blocks but it always shows some error like  "The input fraction length has to be between 1 and 30 (inclusive)."   , "An error occurred while propagating data type 'int32' from 'treat_1/Demux', output port 1.".....Is there any other way?