Alpha-beta -> dq Transformation blocks

The transformation from alpha beta to dq doesnt output the correct results. I have compared it to matlab’s block then. It turns out that the blocks give erroneous results??

I have attached the simulink file through which I did my comparison. Could somebody clarify where is the mistake?

There are no files attached.

Sorry, It is attached now.

transformation_block.slx (30.6 KB)

Two small issues:

The SimScape transformation blocks have a “Rotating Frame Alignment” parameter. To compare the equations between PLECS and SimScape, the frame alignment must be set to “Aligned with phase A axis”. In that case the equations shown in the MathWorks help aligns with the PLECS component.The inputs into your PLECS Scope are switched.

P.S: I switched the inputs just for seeing if it has been reversed.