Implementing Equation in matlab

I have to implement park transformation ,the input to park transformation is
Va,Vb,Vc and theta and output is Vq,please tell how to implement this block

7 Comments

Are you using simulink?
Yes azzi am using simulink
Jan
Jan on 28 Dec 2012
Edited: Jan on 28 Dec 2012
@FIR: As usual I ask, what you have done so far and which problems have occurred. And again I add the "doit4me" tag, because I do not see any own effort or that you've spent enough time and energy to make your question clear.
An impressing large number of your question is marked by doit4me tags. Doesn't this let you think twice if you are perhaps trying to abuse this forum to do your work?
Jan i have tried it as i was not correct
this is the model i have tried,but the output must be as
@FIR: Do you think, that you make answering your questions as easy as possible? You did not answer a lot of questions for clarifications in the past. More than 50% of your questions could not be answered sufficiently.
ok Jan can you please tell what caarification i have to make for this question
Out of 200 questions you've asked, you've accepted only 47% of them (as shown in your profile). Does that mean we have a 53% chance of wasting both your time and our time if we spend time helping you?

Sign in to comment.

 Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 28 Dec 2012
Edited: Azzi Abdelmalek on 28 Dec 2012
You can use Matlab function block or Interpreted Matlab Function block to implement your abc-dq transformation

8 Comments

Azzi its park transformation,but can i use block present in simulink,it has only one input.the eq is
The image just show the transformation matrix. You have to read basis of Park transformation http://en.wikipedia.org/wiki/Dqo_transformation
i have read a paper REGARDING SRF PLL,where the PLL block is not present
http://imgur.com/S30Kd for SRF PLL,please tell is the block in the image is correct
FIR, you don't need a two blocks abc-alfa,beta then alfa,beta-dq, you can use one block abc-dq, with 4 inputs ua, ub, uc, the angle theta and two outputs ud, uq. You just need to get the Park transformation matrix, and use a matlab function block to make your program.
Azzi is this mdl block correct
This is exact. But you can simply use one block instead all those blocks. a matlab function block with a function
function [ud,uq]=fcn(ua,ub,uc,tetas)
uq=sqrt(2/3)*(cos(tetas)*ua+cos(tetas-2*pi/3)*ub+cos(tetas-4*pi/3)*uc);
ud=sqrt(2/3)*(-sin(tetas)*ua-sin(tetas-2*pi/3)*ub-sin(tetas-4*pi/3)*uc);
The gain 2/3 or sqrt(2/3) depends on the Park transformation you've chosen.
Thanks Azzi i have modelled as per the diagram
but why am not getting same output,please assist
FIR, I think it was clear how to program a Park transformation block, by the blocks you found or by the block I suggested. Maybe you have some problem with theory, I think you should read this theory.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!