how to use "abc-dq0 tranformation block"?

according to topic title , i have 3-pha source voltage in abc space and i want to tranform it to dq0 space, but when i use “abc-dq0 tranformation” block , i have a problem with theta , i dont know how to show theta in “piecewise linear” block . does anyone know how to do it ? pls help me

This is not a good way to generate theta. Is best to use a different method, for abc-dq0 transformation have a look at the example circuit “3-ph PWM rectifier with PFC” in the ac-dc example folder. or attached here.

This circuit senses in the incoming voltages and uses the ‘atan2’ function to generate theta, this is important as theta is dependent on the incoming voltage signals.

-Albert