Data type mismatch error in PMSM block.
Show older comments
I am modeling motor controller with Surface Mount PMSM block from motor control blockset. The model is modified from an example and works fine until I add the MTPA block. Error message indicate that the error is due to data type mismatch of a add block inside PMSM block. However, the input and output data type of the PMSM block remain the same as before.

The two block mentioned in the error message seems related to the electric power calculation, but I didn't connect the PwrInfo part. I also tried connecting a dummy speed signal to the input port of MTPA, and the error disappered. The error only appear when the feedback speed is connected to the MTPA block. I don't know how this action is related to the error, please help.
Accepted Answer
More Answers (0)
Categories
Find more on Electrical Block Libraries 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!