simulink编译警告的解决办法

下面是使用simulink过程中出现的警告及解决方法,特此记录。

1,警告: You have required continuous-time simulation of a system containing switches or nonlinear elements. 
The ode23tb variable-step stiff solver with relative tolerance set to 1e-4 generally gives best accuracy and simulation performance. 
For some highly nonlinear models it may be necessary to set the "Solver reset method" parameter to "Robust". 
See "Improving Simulation Performance" chapter in Simscape Power Systems documentation for additional information on how to select an appropriate integration method.
To ignore Simscape Power Systems (Specialized Technology) warnings, select "Disable Simscape Power Systems ST warnings" in the Powergui Preferences tab.

解决办法:

修改powergui属性,由原来的continue改为simulink编译警告的解决办法

然后,编译通过。

 

2,
Output port 1 of 'industrial_frequency_charger/Mosfet1' is not connected.
Component:Simulink | Category:Blockwarning
Output port 1 of 'industrial_frequency_charger/Mosfet2' is not connected.
Component:Simulink | Category:Blockwarning
Output port 1 of 'industrial_frequency_charger/Mosfet3' is not connected.
Component:Simulink | Category:Blockwarning
Output port 1 of 'industrial_frequency_charger/Mosfet4' is not connected.

解决办法:

Mos的m脚悬空了,用Terminator接上就好了。