error simulation pmsm drive

Hello.
I have a problem with simulating pmsm drive.
I get this error message:
Error in port widths or dimensions. Output port 1 of 'new_model_drive/PI Controller1' is a one dimensional vector with 1 elements.
I added the simulation file.
If can help me how fix it.
thanks.

Answers (1)

Sabin
Sabin on 9 Jan 2023
The dq0 to abc transformation is expecting a vector with three elements. The solution would be to mux ud, uq and a constant 0 (zero component). Another issue is that the mux is used uq as first input but should be ud first.

Tags

Asked:

on 15 Jul 2019

Answered:

on 9 Jan 2023

Community Treasure Hunt

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

Start Hunting!