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.

Code Generation

Dear All,

I have a doubt about the code generated by Simulink..I am using F2808 micro controller for field Oriented Control I am using simulink to develop the control logic for my DSP. So I used the predefined Clark and park transformation..  

when I try to analyse the code developed by simulink ..I could not see any Clark header or .c file 

I have installed DMC libary F280x which provide predefined clark and park transformation code......

For ex:Clark

#include "dmctype.h"
#include "clarke.h"

void clarke_calc(CLARKE *v)

v->Alpha = v->As;

v->Beta = (v->As + 2*v->Bs)*0.57735026918963; // 1/sqrt(3) = 0.57735026918963
}

This type of code is not generated by Simulink(I could not see these calculations in the code) when i used the predefined block in the  embedded coder...how I need to assume now. Is simulink is generating the code for the predefined  block or not.

Or I need to link the DMC library  to simulink?? please help me

Thank you..

Vureli naveen