2

当我运行我的模型时,我遇到了问题。错误是:

“duo/Subsystem2/Genset1/Primover and generator/Electrical system/SFunction”中的 S-Function“sf_sfun”报告的错误:Stateflow Suppress 错误。

.\utils\object.cpp 第 2850 行的断言失败:object[id]!=NULL Stack Trace: [0] 000000018000DCC4 libut.dll+056516 (MathWorks::I18N::Utf8String::clone+000260) [1] 0000000180010E6C
libut.dll+069228 (utDumpStackTrace+000492) [ 2] 0000000041A52615
sf.mexw64+2631189 (dd::DDException::~DDException+004277) [ 3] 0000000041B7E7F8 sf.mexw64+3860472 (TagVisitorTraverserSF::`vftable'+478424 ) MATLAB m 文件堆栈跟踪:

在 stateflow\private\get_sf_block_port_info 在 8

当我打开功能get_sf_block_port_info时,我得到了这个功能

    function portInfo = get_sf_block_port_info(sfunId,varargin)

% Copyright 2003-2004 The MathWorks, Inc.

blockId = get_param(sfunId, 'parent');
chartId = block2chart(blockId);
try
    portInfo = sf('Cg','get_chart_port_info',chartId,varargin{:});
catch
    portInfo = [];
end

我试图改变 varargin{:} 来做 varargin,但我不能做任何改变。

4

0 回答 0