在进行电力电子simulink仿真时,如果出现“Error in embedded hardware settings on Hardware Implementation pane of Configuration Parameters dialog box: "native word size" specifies a value of 64, but it must match one of the values specified by the "char", "short", "int", or "long" parameters.”
他的中文意思是:在“配置参数”对话框的“硬件实现”窗格中的“嵌入式硬件设置”中出错:“本机字大小”指定的值为64,但它必须与“char”、“short”、“int”或“long”参数指定的值之一匹配。
修改办法如下
1、打开simulink模型
2、找到simulink的设置窗口,如下图
3.点进去找到hardware implementation,如下
4.在这个窗口你可以修改仿真仪器,以及不同数据类型的位数,2014a版本的一般勾选enable long long就解决问题了