hsppcc 发表于 2007-4-16 23:09

求教:单相全桥逆变器数字双PI的SIMULINK仿真过程中出现的问题~

我在做单相全桥逆变器数字控制双PI的SIMULINK仿真,单电压PI环没问题,加入电流PI环仿真无法完成,到0.04S自动停止,窗口提示Trouble solving algebraic loop containing"a/discrete PI controller 1/kp4" at time 0.037.Stoppin simulation.there may be a sigularity in the solution.If the model is correct,try reduceing the step size(either by reducing the fixed step size or by tightening the error tollerances)找来找去也不行,MATLAB WINDOWS 提示:convergence problem when solving algebraic loop containing "a/discrete pi controller1/kp4"at time 0.04037.simulink will try to solve this loop using simulink 3(R11)strategy.Use eature ("ModeIterationsInAlgloops",0)to disable the strategy introduced in simulink 4(R12)请问最后一句应该怎样执行呢

cdwxg 发表于 2007-4-17 11:12

你加的那个PI调节器是离散模型的吧
这个可能是由于你的是连续模型,但是你的调节器或者一些模块是离散的造成的
当然这个只是个可能
你先看下呢,再来说下

hsppcc 发表于 2007-4-25 12:17

详细情况请进

电路:


[ 本帖最后由 hsppcc 于 2007-4-25 12:39 编辑 ]

hsppcc 发表于 2007-4-25 12:42

错误



[ 本帖最后由 hsppcc 于 2007-4-25 12:57 编辑 ]

hsppcc 发表于 2007-4-25 12:43

错误



[ 本帖最后由 hsppcc 于 2007-4-25 12:59 编辑 ]

hsppcc 发表于 2007-4-25 12:44

窗口提示

Warning: Block diagram 'a' contains 1 algebraic loop(s). To see more details about the loops use the command line Simulink debugger by typing "sldebug a" in the MATLAB command window. To eliminate this message, set the Algebraic loop option in the Diagnostics page of the Simulation Parameters Dialog to "None".
Found algebraic loop containing:
'a/Discrete PI Controller1/Kp4'
'a/Discrete PI Controller1/Sum6'
'a/Discrete PI Controller1/Saturation2' (discontinuity)
'a/Discrete PWM Generator/Switch' (discontinuity)
'a/Discrete PWM Generator/Gain3'
'a/Discrete PWM Generator/Relational Operator1' (discontinuity)
'a/Discrete PWM Generator/Data TypeConversion2'
'a/Discrete PWM Generator/BL5' (discontinuity)
'a/Discrete PWM Generator/Relational Operator' (discontinuity)
'a/Discrete PWM Generator/Data TypeConversion1'
'a/Discrete PWM Generator/BL4' (discontinuity)
'a/Discrete PWM Generator/Data TypeConversion'
'a/V measure/source/GTO-IGBT Bridge/model1/Data TypeConversion4'
'a/V measure/source/GTO-IGBT Bridge/model1/Tail discrete'
'a/V measure/source/State-Space'
'a/Gain' (algebraic variable)
'a/Quantizer' (discontinuity)
'a/Sum' (algebraic variable)
'a/Discrete PI Controller/Kp4'
'a/Discrete PI Controller/Sum6'
'a/Discrete PI Controller/Saturation2' (discontinuity)
'a/Sum1' (algebraic variable)
This algebraic loop may be resolved when the subsystem option 'Minimize algebraic loop occurrences' is selected on some or all of the atomic and enabled subsystems in this algebraic loop.
Warning: Discontinuities detected within algebraic loop(s), may have trouble solving.
Warning: Convergence problem when solving algebraic loop containing 'a/Discrete PI Controller1/Kp4' at time 0.04037.Simulink will try to solve this loop using Simulink 3 (R11) strategy. Use feature('ModeIterationsInAlgLoops',0) to disable the strategy introduced in Simulink 4 (R12).
>>

hsppcc 发表于 2007-4-25 13:03

麻烦给看看吧~~

有劳了,大概情况就是这样....:handshake

cdwxg 发表于 2007-4-25 17:41

应该不是步长,多半是模型错误,你的powergui有用么?
另外,你换另外一个PI控制器试验一下呢?
先要找出是不是PI的问题
如果是PI的问题那就好办多了
SIMULINK的麻烦就在不知道是哪里错了,报错机制很多时候都是不对的.

hsppcc 发表于 2007-4-26 00:04

换了还是不行啊~~看来就是PI模块的问题~~
可是数字PI涉及到上次误差,应该怎么搭呢??请指点::@D

cdwxg 发表于 2007-4-26 10:28

上次误差?
什么意思?
数字PI也没那么难搭建,看你是离散的还是连续的?
KP,KI都是增益,两个相加,KI后面加个积分,看你是离散还是连续的不同而用不同的模块
另外,相加后限幅输出就可以

hsppcc 发表于 2007-4-27 12:48

:handshake 多谢了~~~
把POWERGUI去掉然后给电流检测加了个量化就出来了
自己正在搭PI,小弟动手能力差:@L 见笑..

cdwxg 发表于 2007-5-1 14:13

原帖由 hsppcc 于 2007-4-27 12:48 发表 http://forum.vibunion.com/forum/images/common/back.gif
:handshake 多谢了~~~
把POWERGUI去掉然后给电流检测加了个量化就出来了
自己正在搭PI,小弟动手能力差:@L 见笑..
呵呵,谦虚了哈,主要看遇到问题时候的态度,只要坚持,积极地探讨都可以解决的:)
powergui,我没有搞明白,但我知道一般情况都只是在离散系统中给个ts作用,但不会设置
另外,连续系统很多人都有这个,造成的错误,希望大家注意,一般不应该有的。

ltx5123 发表于 2008-4-17 13:27

上楼的大哥你好,我也在做你这课题,你可以把你解决好的仿真模型上传上来分享下吗,或者发给我,QQ:364892088可以加qq讨论研究,不胜感激:handshake

welcome812 发表于 2008-12-28 15:19

现在我也遇到这样的问题,连续的模型是对的,可是我采用反差离散化后,就出现跟你一样的情况,狂多的代数环,错误百出,我都查了很多,怎么也整不对.请问楼主是怎么解决的??谢谢,感激!!!还可以qq联系,279263682,请注名:simlink仿真

welcome812 发表于 2009-1-5 09:31

请高手指点啊,小妹实在没辙啊.谢谢了
页: [1]
查看完整版本: 求教:单相全桥逆变器数字双PI的SIMULINK仿真过程中出现的问题~