离散的微分模块D模块在simulink里面用的是Discrete Derivative
但是一仿真便出现Trouble solving algebraic loop containing 'zhuan_lisan_mianyi2/fuzzy-immune-pi/Subsystem/Discrete Derivative/TSamp' at time 0.008. Stopping simulation. There may be a singularity in the solution. If the model is correct, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances)这样类似的错误,不是步长问题肯定。
我试验了下,只有选择ts only和1/ts only才不会发生错误,但此时好像微分后的值一直都为0。
不晓得怎么解决了,大家帮下忙。
我想要的是离散系统下微分的效果。谢谢