声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 5064|回复: 14

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

[复制链接]
发表于 2007-4-16 23:09 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
我在做单相全桥逆变器数字控制双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)请问最后一句应该怎样执行呢
回复
分享到:

使用道具 举报

发表于 2007-4-17 11:12 | 显示全部楼层
你加的那个PI调节器是离散模型的吧
这个可能是由于你的是连续模型,但是你的调节器或者一些模块是离散的造成的
当然这个只是个可能
你先看下呢,再来说下
 楼主| 发表于 2007-4-25 12:17 | 显示全部楼层

详细情况请进

电路:

tu

tu


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

tu

tu
 楼主| 发表于 2007-4-25 12:42 | 显示全部楼层

错误

oo

oo


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

错误

错误
 楼主| 发表于 2007-4-25 12:43 | 显示全部楼层

错误

pp

pp


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

错误

错误
 楼主| 发表于 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 Type  Conversion2'
  'a/Discrete PWM Generator/BL5' (discontinuity)
  'a/Discrete PWM Generator/Relational Operator' (discontinuity)
  'a/Discrete PWM Generator/Data Type  Conversion1'
  'a/Discrete PWM Generator/BL4' (discontinuity)
  'a/Discrete PWM Generator/Data Type  Conversion'
  'a/V measure/source/GTO-IGBT Bridge/model1/Data Type  Conversion4'
  '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).
>>
 楼主| 发表于 2007-4-25 13:03 | 显示全部楼层

麻烦给看看吧~~

有劳了,大概情况就是这样....:handshake
发表于 2007-4-25 17:41 | 显示全部楼层
应该不是步长,多半是模型错误,你的powergui有用么?
另外,你换另外一个PI控制器试验一下呢?
先要找出是不是PI的问题
如果是PI的问题那就好办多了
SIMULINK的麻烦就在不知道是哪里错了,报错机制很多时候都是不对的.
 楼主| 发表于 2007-4-26 00:04 | 显示全部楼层
换了还是不行啊~~看来就是PI模块的问题~~
可是数字PI涉及到上次误差,应该怎么搭呢??请指点::@D
发表于 2007-4-26 10:28 | 显示全部楼层
上次误差?
什么意思?
数字PI也没那么难搭建,看你是离散的还是连续的?
KP,KI都是增益,两个相加,KI后面加个积分,看你是离散还是连续的不同而用不同的模块
另外,相加后限幅输出就可以
 楼主| 发表于 2007-4-27 12:48 | 显示全部楼层
:handshake 多谢了~~~
把POWERGUI去掉然后给电流检测加了个量化就出来了
自己正在搭PI,小弟动手能力差:@L 见笑..
发表于 2007-5-1 14:13 | 显示全部楼层
原帖由 hsppcc 于 2007-4-27 12:48 发表
:handshake 多谢了~~~
把POWERGUI去掉然后给电流检测加了个量化就出来了
自己正在搭PI,小弟动手能力差:@L 见笑..

呵呵,谦虚了哈,主要看遇到问题时候的态度,只要坚持,积极地探讨都可以解决的:)
powergui,我没有搞明白,但我知道一般情况都只是在离散系统中给个ts作用,但不会设置
另外,连续系统很多人都有这个,造成的错误,希望大家注意,一般不应该有的。
发表于 2008-4-17 13:27 | 显示全部楼层
上楼的大哥你好,我也在做你这课题,你可以把你解决好的仿真模型上传上来分享下吗,或者发给我,QQ:364892088可以加qq讨论研究,不胜感激:handshake
发表于 2008-12-28 15:19 | 显示全部楼层
现在我也遇到这样的问题,连续的模型是对的,可是我采用反差离散化后,就出现跟你一样的情况,狂多的代数环,错误百出,我都查了很多,怎么也整不对.请问楼主是怎么解决的??谢谢,感激!!!还可以qq联系,279263682,请注名:simlink  仿真
发表于 2009-1-5 09:31 | 显示全部楼层
请高手指点啊,小妹实在没辙啊.谢谢了
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-9-20 22:44 , Processed in 0.069841 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表