做了一个PMSM直接转矩控制的仿真,运行后结果SVPWM中提示出错如下
Out of bounds switch input specified for 'DTCsystem/countT1T2/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
也就是说采用one-based indexing时control input取[1,6],zero-based indexing时取[0,6],找了一遍实在找不到问题所在,请教各位啦!