MATLAB/SIMULINK测量端问题

时间:2024-03-26 14:23:39

MATLAB/SIMULINK测量端问题
出现以下错误:Derivative of state ‘1’ in block ‘model1/PLL (3ph)/Model/Variable Frequency Mean value/Model/integrator’ at time 0.00090000000000000008 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances) 时,这里的原因是断点上无法进行有效微分。解决办法:请将电路中的powergui从discrete设置成continuous模式。

powergui的一些作用:powergui块允许您选择其中一个方法来解决您的电路:
连续使用的变步解算器仿真软件®
理想开关连续
在固定的时间步骤中,电力系统的离散化
相量的解决方案
powergui块还为稳定状态和模拟结果分析和高级参数设计打开了工具。
你需要powergui块来模拟任何仿真软件模型包含Simscape™电力系统™专业技术。它存储了相当于模型的状态空间方程的等效模拟电路。
在模型中使用一个powergui块时:
将powergui块放置在*图中,以获得最佳性能。
确保该块使用名称powergui。
powergui块在模型更新期间被禁用。为了确保正确的模型执行,不要恢复powergui块的库链接。
在一个包含两个或多个独立电路的系统中,您可以使用多个powergui块来模拟不同的powergui求解程序。例如,该系统以连续模式模拟了离散模式下的上电路和下电路。目的是比较两种方法的模拟性能。