FPGA专区--------------4. simulink 中代数环的问题

来源:互联网 发布:idc数据 研究院 编辑:程序博客网 时间:2024/05/16 05:12

在simulink仿真中,会遇到这种错误:

Cannot solve algebraic loop involving 'model/.../Sensor System' because it consists of blocks that cannot be assigned algebraic variables, i.e., blocks with discrete-valued outputs, blocks with non-double or complex outputs, Stateflow blocks, or nonvirtual subsystems.

【不能求解存在于'model/.../Sensor System'的代数环,因为它包含了不能指定代数变量的模块,比如,有离散输出的模块、有非double或复数输出的模块、Stateflow模块、无效子系统。】

 

这是经典的代数环问题。

什么是代数环?

当方程两边都出现同一个变量时,即产生了代数环。如:

    y=2-y

当Simulink中存在非模型延迟时,通常会产生代数环。比如,传感器将输出信号反馈到输入端。

 

这种问题一般加入延迟模块解决。

 

原创粉丝点击