|
|
发表于 2009-8-6 15:00:05
|
显示全部楼层
本帖最后由 focuscon 于 2009-8-6 15:01 编辑
% w* U) }9 A/ l Q& S
) e6 G t: g2 w来晚了,好问题啊!, W' q, }& C4 e$ H( I3 O9 C# D
谢谢林伟的经验分享,很好的技巧。在手册 P254 Tips and Techniques一章里面有介绍这个问题。( r0 f2 a6 ?- y( z
技术支持论坛里面有个这样的帖子,“出现同时事件(时间死结) Extendsim如何处理”
( _8 c% r7 T2 p1 Y1 IExtendSim puts the blocks on the event calendar in simulation order. Blocks with a lower simulation order will receive their event message first. You can change the simulation order with the following steps:
* {5 _# B7 ~- w9 R) X6 Z$ z5 A+ I9 g! n3 ^, I3 f
Go to Run > Simulation Setup > Continuous tab.
~+ E; a3 a6 Q( y' h% d6 d1 _9 K. T |; h, \$ e. c5 ]
Turn on Show Simulation Order from the Model menu.
7 Y4 D3 |* }# N- R! O6 A; B/ C/ i8 P
Select an event scheduling block and choose Set Simulation Order from the Model menu.
# s& R! E7 ?/ o+ R" F* V7 g0 j, o! q r. F$ i# f* Z# t
Note that the simulation order will only make a difference if two or more events occur at exactly the same time. If the events are not exactly at the same time, the events will occur in chronological order.5 h2 ~* v& R* A% ?" N
我试了一下按照这个办法调整仿真顺序没办法解决这个问题,是不是这个模型本身就存在逻辑错误,林伟的方法正好可以屏蔽掉那个错误?
9 M: H+ c8 K( L% u, m7 @9 h5 _5 U# z/ ZQueue, Resource Pool 是在释放小球时再占用资源,Gate放在了Queue和Activity之间,资源低于安全值时发生了冲突?有点不太明白。 |
|