MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayTo resolve issues starting MATLAB on Mac OS X 10.10 (Yosemite) visit: http://www.mathworks.com/matlabcentral/answers/159016

Asked by FIR on 28 Dec 2012

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

*No products are associated with this question.*

Answer by Azzi Abdelmalek on 28 Dec 2012

Edited by Azzi Abdelmalek on 28 Dec 2012

Accepted answer

You can use **Matlab function** block or **Interpreted Matlab Function** block to implement your abc-dq transformation

Show 5 older comments

Azzi Abdelmalek on 5 Jan 2013

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.

FIR on 5 Jan 2013

Thanks Azzi i have modelled as per the diagram

http://www.sendspace.com/file/7ejn5s

http://www.sendspace.com/file/h9a77z

but why am not getting same output,please assist

Azzi Abdelmalek on 5 Jan 2013

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.

## 7 Comments

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/57554#comment_119527

Are you using simulink?

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/57554#comment_119529

Yes azzi am using simulink

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/57554#comment_119530

@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?

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/57554#comment_119533

Jan i have tried it as i was not correct

http://www.sendspace.com/file/j5wgo9

this is the model i have tried,but the output must be as

http://www.sendspace.com/file/aulket

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/57554#comment_119538

@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.

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/57554#comment_119540

ok Jan can you please tell what caarification i have to make for this question

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/57554#comment_120898

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?