I want to build the simulink model for PMSM motor, which takes input from PWM high speed block of micro chip motor library.

1 view (last 30 days)
Hello, I am buliding PMSM motor model using microchip library which i have to deploy on dsPIC33EP512 controller. So for that, I am using simulink, i have to PWM high speed block for input to motor, i am facing error, I used SVPWM block of microchip library, and got error of "The expected number of dialog parameters of 'try_PWM/SVM-generator:gain-and-phase-shift/codegeneration' (1) does not match the number of dialog parameters specified in the MATLAB S-Function parameters dialog box (0)"
I have one more question that, can i use
SVPWM and PWM block same time, or not?
Attching diagram of model, please help to remove the error.

Answers (1)

Sabin
Sabin on 17 Nov 2023
From what can be seen in the diagram there is a 'dq-to-alphabeta' block which outputs two signals connected to the SVM generator block which expects more than two signals. Also if the SVM is outputing the PWM (6 signals) this cannnot be directly used to supply the machine without an inverter.

Communities

More Answers in the  Power Electronics Control

Categories

Find more on Specialized Power Systems in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!