模型块仿真双闭环是可以的,速度环电流环都是PI控制,但是将速度环换成滑模变结构控制,SVPWM就出错了,如下:
Out of bounds switch input specified for 'pmsm2/Subsystem2/Subsystem/Multiport Switch'. The control input must be greater than or equal to 1 and less than or equal to the number of inputs if using one-based indexing; The control input must be greater than or equal to 0 and less than the number of inputs if using zero-based indexing,望高手帮忙!!!